blob: d7940484ffbb9394afee7ca38bab1eaf2f64102c [file] [log] [blame]
<!DOCTYPE html>
<script src='../../resources/js-test.js'></script>
<script>
description("Non HTMLDocument such as XMLDocument shouldn't support execCommand");
var xmldoc = window.document.implementation.createDocument('http://www.w3.org/1999/xlink', 'html', null);
shouldThrow("xmldoc.execCommand('bold')");
shouldThrow("xmldoc.queryCommandEnabled('bold')");
shouldThrow("xmldoc.queryCommandIndeterm('bold')");
shouldThrow("xmldoc.queryCommandState('bold')");
shouldThrow("xmldoc.queryCommandSupported('bold')");
shouldThrow("xmldoc.queryCommandValue('bold')");
</script>