4 <script src=
"../../../resources/js-test.js"></script>
8 var documentFragment
= document
.createDocumentFragment();
9 var documentType
= document
.doctype
;
10 var element
= document
.documentElement
;
11 var characterData
= document
.createTextNode("");
13 "compareDocumentPosition()",
15 "isDefaultNamespace()",
17 "lookupNamespaceURI()",
19 ].forEach(function(expr
)
21 shouldThrow("document." + expr
);
22 shouldThrow("documentFragment." + expr
);
23 shouldThrow("documentType." + expr
);
24 shouldThrow("element." + expr
);
25 shouldThrow("characterData." + expr
);