(HTML5 Parsing) Yet another corner-case: parsing into other contexts...

[parent browsing context]

...

<iframe src=child.html></iframe>

<div id=attach></div>

...



[child.html (assuming same-domain access is allowed to parent markup)]



<html>

  <body>

    <div id=a>

      <span>

        <script>

          window.parent.document.getElementById('attach').appendChild( document.getElementById('a') );

        </script>

        <span id=where>Where does this get parsed?

        </span>

      </span>

    </div>

  </body>

</html>





Does the <span id=where> get parsed as a child of "div#a > span" in the parent browsing context, or in child.html?

Received on Wednesday, 24 June 2009 00:03:25 UTC