blob: 19c9d54029874e8f4dac6c2419bdabfd8a5060d7 [file] [log] [blame]
<!doctype html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<script>
var element = document.createElementNS("http://example.com/", "example");
[
"getAttribute()",
"getAttributeNS()",
"getAttributeNS('http://example.com/')",
"getAttributeNode()",
"getAttributeNodeNS()",
"getAttributeNodeNS('http://www.w3.org/2000/svg')",
"getElementsByClassName()",
"getElementsByTagName()",
"getElementsByTagNameNS()",
"getElementsByTagNameNS('http://example.com/')",
"hasAttributeNS()",
"hasAttributeNS('http://example.com/')",
"removeAttribute()",
"removeAttributeNS()",
"removeAttributeNS('http://example.com/')",
"removeAttributeNode()",
"setAttribute()",
"setAttribute('example')",
"setAttributeNS()",
"setAttributeNS('http://example.com/')",
"setAttributeNS('http://example.com/', 'example')",
"setAttributeNode()",
"setAttributeNodeNS()"
].forEach(function(expr)
{
shouldThrow("element." + expr);
});
</script>
</body>
</html>