Source code

Revision control

Other Tools

Test Info:

<!doctype html>
<title>Appending from the parser after adopting in an XML document doesn't miss notifications</title>
<link rel="match" href="adopt-while-parsing-001-ref.html">
<link rel="author" title="Emilio Cobos Álvarez" href="">
<link rel="author" title="Mozilla" href="">
html, body { margin: 0 }
// If we don't get notified of the <div> insertion, the PASS text will never appear.
function parsingInterrupted() {
let frameDoc = document.querySelector("iframe").contentDocument;
let root = frameDoc.documentElement;
<iframe src="adopt-while-parsing.xhtml"></iframe>