W3C home > Mailing lists > Public > public-html@w3.org > June 2009

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

From: Travis Leithead <Travis.Leithead@microsoft.com>
Date: Wed, 24 Jun 2009 00:02:35 +0000
To: "'public-html@w3.org'" <public-html@w3.org>, Ian Hickson <ian@hixie.ch>
Message-ID: <49142F02149340458FDD20841AD0AD5602357E@TK5EX14MBXW653.wingroup.windeploy.ntdev.microsoft.com>
[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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:38 GMT