mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
Documents created via DOMParser.parseFromString() are parsed synchronously and do not participate in the browsing context's loading pipeline. This patch ensures that if the document has no browsing context (i.e. was parsed via DOMParser), its readiness is set to "complete" synchronously. Fixes WPT: domparsing/xmldomparser.html
13 lines
388 B
HTML
13 lines
388 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>XML Dom Parse readyState Test</title>
|
|
<script src="../resources/testharness.js"></script>
|
|
<script src="../resources/testharnessreport.js"></script>
|
|
<script>
|
|
test(function () {
|
|
assert_equals(
|
|
(new DOMParser()).parseFromString("<html></html>", "text/xml").readyState,
|
|
"complete"
|
|
);
|
|
});
|
|
</script>
|