dom: add more WPT tests for document

This commit is contained in:
Pierre Tachoire
2023-12-07 17:44:43 +01:00
parent b0c6948848
commit 807b3275a4
11 changed files with 339 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>document.createCDATASection must throw in HTML documents</title>
<link rel="help" href="https://dom.spec.whatwg.org/#dom-document-createcdatasection">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
setup({ single_test: true });
assert_throws_dom("NotSupportedError", () => document.createCDATASection("foo"));
done();
</script>