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 // svg != SVG |
| 7 var doc = document.implementation.createDocument("http://www.w3.org/2000/svg",
"SVG", null); |
| 8 doc.documentElement.appendChild(doc.createElementNS("http://www.w3.org/1999/xh
tml", "title")); |
| 9 doc.documentElement.lastChild.textContent = "bar"; |
| 10 assert_equals(doc.title, "bar"); |
| 11 |
| 12 doc.documentElement.appendChild(doc.createElementNS("http://www.w3.org/1999/xh
tml", "title")); |
| 13 doc.documentElement.lastChild.textContent = "foo"; |
| 14 assert_equals(doc.title, "bar"); |
| 15 }, "Test for setting title element in the html namespace on SVG element that is
root."); |
| 16 </script> |
OLD | NEW |