4 <script src=
"../../../resources/js-test.js"></script>
8 var element
= document
.createElementNS("http://example.com/", "example");
12 "getAttributeNS('http://example.com/')",
14 "getAttributeNodeNS()",
15 "getAttributeNodeNS('http://www.w3.org/2000/svg')",
16 "getElementsByClassName()",
17 "getElementsByTagName()",
18 "getElementsByTagNameNS()",
19 "getElementsByTagNameNS('http://example.com/')",
21 "hasAttributeNS('http://example.com/')",
23 "removeAttributeNS()",
24 "removeAttributeNS('http://example.com/')",
25 "removeAttributeNode()",
27 "setAttribute('example')",
29 "setAttributeNS('http://example.com/')",
30 "setAttributeNS('http://example.com/', 'example')",
32 "setAttributeNodeNS()"
33 ].forEach(function(expr
)
35 shouldThrow("element." + expr
);