tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

adopt-while-parsing-001.html (815B)


      1 <!doctype html>
      2 <title>Appending from the parser after adopting in an XML document doesn't miss notifications</title>
      3 <link rel="match" href="adopt-while-parsing-001-ref.html">
      4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1511329">
      5 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      6 <link rel="author" title="Mozilla" href="https://mozilla.org">
      7 <style>
      8  html, body { margin: 0 }
      9 </style>
     10 <script>
     11  // If we don't get notified of the <div> insertion, the PASS text will never appear.
     12  function parsingInterrupted() {
     13    let frameDoc = document.querySelector("iframe").contentDocument;
     14    let root = frameDoc.documentElement;
     15    document.documentElement.appendChild(root);
     16    root.offsetTop;
     17  }
     18 </script>
     19 <iframe src="adopt-while-parsing.xhtml"></iframe>