2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / dom / setAttributeNS.html
bloba617d54a16d8f45450c8907b61edb3f174ee5f7f
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <script>
6 function debug(str) {
7 pre = document.getElementById('console');
8 text = document.createTextNode(str + '\n');
9 pre.appendChild(text);
12 function runTests() {
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)
20 debug('SUCCESS')
21 else
22 debug('FAILURE')
25 </script>
26 </head>
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".
29 <pre id="console">
30 </pre>
31 </body>
32 </html>