blob: 15a790650a17e2c706ccefef8749e72ffabf2d11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!doctype html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
[
"getNamedItem()",
"getNamedItemNS()",
"getNamedItemNS('http://www.w3.org/2000/svg')",
"item()",
"removeNamedItem()",
"removeNamedItemNS()",
"removeNamedItemNS('http://www.w3.org/2000/svg')",
"setNamedItem()",
"setNamedItemNS()",
].forEach(function(expr)
{
window.attributes = document.body.attributes;
shouldThrow("attributes." + expr);
});
</script>
</body>
</html>
|