mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 08:00:45 +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
5 lines
448 B
Text
5 lines
448 B
Text
readyState of 'new Document()' should be 'complete': 'complete'
|
|
readyState of 'document.implementation.createHTMLDocument()' should be 'complete': 'complete'
|
|
readyState of 'document.implementation.createDocument()' should be 'complete': 'complete'
|
|
readyState of 'new DOMParser().parseFromString('', 'text/html')' should be 'complete': 'complete'
|
|
readyState of 'iframe.contentDocument' of initial about:blank iframe should be 'complete': 'complete'
|