summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/domparsing/resources/domparser-iframe.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/domparsing/resources/domparser-iframe.js')
-rw-r--r--testing/web-platform/tests/domparsing/resources/domparser-iframe.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/web-platform/tests/domparsing/resources/domparser-iframe.js b/testing/web-platform/tests/domparsing/resources/domparser-iframe.js
new file mode 100644
index 0000000000..a62d2f293b
--- /dev/null
+++ b/testing/web-platform/tests/domparsing/resources/domparser-iframe.js
@@ -0,0 +1,4 @@
+window.doParse = (html, mimeType) => {
+ const parser = new DOMParser();
+ return parser.parseFromString(html, mimeType);
+};