OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML> | |
2 <html> | |
3 <head> | |
4 <script src="../../../resources/js-test.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 description("Updating value of an attached Attr node having a null value"); | |
9 | |
10 var element = document.createElement("div"); | |
11 var attr = document.createAttribute("nullable"); | |
12 shouldBeEmptyString("attr.value"); | |
13 shouldBeNull("attr.value = null; attr.value"); | |
14 shouldBeNull("element.setAttributeNode(attr);"); | |
15 shouldBeNull("element.getAttribute('nullable');"); | |
16 shouldBeEqualToString("attr.value = 'noCrash'; attr.value", "noCrash"); | |
17 shouldBeEqualToString("element.getAttribute('nullable')", "noCrash"); | |
18 shouldBeNull("attr.value = null; attr.value"); | |
19 shouldBeNull("element.getAttribute('nullable')"); | |
20 </script> | |
21 </body> | |
22 </html> | |
OLD | NEW |