2 <script src='../../resources/js-test.js'
></script>
4 description("Non HTMLDocument such as XMLDocument shouldn't support execCommand");
6 var xmldoc
= window
.document
.implementation
.createDocument('http://www.w3.org/1999/xlink', 'html', null);
7 shouldThrow("xmldoc.execCommand('bold')");
8 shouldThrow("xmldoc.queryCommandEnabled('bold')");
9 shouldThrow("xmldoc.queryCommandIndeterm('bold')");
10 shouldThrow("xmldoc.queryCommandState('bold')");
11 shouldThrow("xmldoc.queryCommandSupported('bold')");
12 shouldThrow("xmldoc.queryCommandValue('bold')");