Document-createCDATASection.html (460B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>document.createCDATASection must throw in HTML documents</title> 4 <link rel="help" href="https://dom.spec.whatwg.org/#dom-document-createcdatasection"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 8 <script> 9 "use strict"; 10 11 setup({ single_test: true }); 12 13 assert_throws_dom("NotSupportedError", () => document.createCDATASection("foo")); 14 15 done(); 16 </script>