OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 test(function() { |
| 6 var doc = document.implementation.createDocument("http://www.w3.org/2000/svg",
"SVG", null); |
| 7 var body = doc.createElementNS("http://www.w3.org/1999/xhtml", "body"); |
| 8 doc.documentElement.appendChild(body); |
| 9 var svg = doc.createElementNS("http://www.w3.org/2000/svg", "svg"); |
| 10 body.appendChild(svg); |
| 11 var g = doc.createElementNS("http://www.w3.org/2000/svg", "g"); |
| 12 svg.appendChild(g); |
| 13 var title1 = doc.createElementNS("http://www.w3.org/1999/xhtml", "title"); |
| 14 title1.textContent = "title1"; |
| 15 g.appendChild(title1); |
| 16 assert_equals(doc.title,'title1'); |
| 17 var title2 = doc.createElementNS("http://www.w3.org/1999/xhtml", "title"); |
| 18 title2.textContent = "title2"; |
| 19 svg.appendChild(title2); |
| 20 assert_equals(doc.title,'title1'); |
| 21 }, "Test for setting title element of inner svg document."); |
| 22 </script> |
OLD | NEW |