1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
7 pre
= document
.getElementById('console');
8 text
= document
.createTextNode(str
+ '\n');
13 if (window
.layoutTestController
)
14 layoutTestController
.dumpAsText();
16 elem
= document
.createElementNS('http://www.example.org', 'test')
17 attr
= elem
.setAttributeNS(null, 'name', 'value')
19 if (elem
.attributes
[0].namespaceURI
== null)
27 <body onload=
"runTests();">
28 This tests that setAttributeNS with a null namespaceURI actually sets it to the value null and not a string with the contents 'null'. If the test is sucessful, the text below should say
"SUCCESS".