| OLD | NEW |
| (Empty) |
| 1 Tests the serialization of XML namespaces on attributes, as reported in bug 2480
44. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS doc.documentElement.getAttributeNS(null, "attr1") is "value1" | |
| 7 PASS doc.documentElement.getAttributeNS("http://www.example.com", "foo") is "bar
" | |
| 8 PASS doc.documentElement.getAttributeNS("http://www.example.com", "foo2") is "ba
r2" | |
| 9 PASS doc.documentElement.getAttributeNS("http://www.example.com/ns1", "fizz") is
"buzz" | |
| 10 PASS doc.documentElement.getAttributeNS("http://www.example.com/ns1", "fizz2") i
s "buzz2" | |
| 11 PASS doc.documentElement.getAttributeNS("http://www.example.com/ns2", "name") is
"value" | |
| 12 PASS doc.documentElement.getAttributeNS("http://www.example.com/ns2", "name2") i
s "value2" | |
| 13 PASS doc.documentElement.getAttributeNS("http://www.w3.org/XML/1998/namespace",
"id") is "outer" | |
| 14 PASS doc.querySelector("inner").localName is "inner" | |
| 15 PASS doc.querySelector("inner").namespaceURI is "http://www.example.com" | |
| 16 PASS doc.querySelector("inner").getAttributeNS(null, "id") is "inner" | |
| 17 PASS parsedDoc.documentElement.getAttributeNS(null, "attr1") is "value1" | |
| 18 PASS parsedDoc.documentElement.getAttributeNS("http://www.example.com", "foo") i
s "bar" | |
| 19 PASS parsedDoc.documentElement.getAttributeNS("http://www.example.com", "foo2")
is "bar2" | |
| 20 PASS parsedDoc.documentElement.getAttributeNS("http://www.example.com/ns1", "fiz
z") is "buzz" | |
| 21 PASS parsedDoc.documentElement.getAttributeNS("http://www.example.com/ns1", "fiz
z2") is "buzz2" | |
| 22 PASS parsedDoc.documentElement.getAttributeNS("http://www.example.com/ns2", "nam
e") is "value" | |
| 23 PASS parsedDoc.documentElement.getAttributeNS("http://www.example.com/ns2", "nam
e2") is "value2" | |
| 24 PASS parsedDoc.documentElement.getAttributeNS("http://www.w3.org/XML/1998/namesp
ace", "id") is "outer" | |
| 25 PASS parsedDoc.querySelector("inner").localName is "inner" | |
| 26 PASS parsedDoc.querySelector("inner").namespaceURI is "http://www.example.com" | |
| 27 PASS parsedDoc.querySelector("inner").getAttributeNS(null, "id") is "inner" | |
| 28 PASS successfullyParsed is true | |
| 29 | |
| 30 TEST COMPLETE | |
| 31 | |
| OLD | NEW |