W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2013

Re: [whatwg] Another issue in 12.2.5.5 parsing tokens in foreign content

From: Michael Day <mikeday@yeslogic.com>
Date: Mon, 24 Jun 2013 12:24:24 +1000
Message-ID: <51C7ADD8.1090801@yeslogic.com>
To: Adam Barth <w3c@adambarth.com>
Cc: whatwg@whatwg.org
Hi Adam,

>> Since the stack of open elements always has <html> at the top of the stack,
>> the "element in scope" algorithm will always find it, and as a result, the
>> first part of the condition will always fail.
>
> Even in the fragment case?  (Note the parenthetical remark in the spec
> about this text applying only in the fragment case.)

Yes, see 12.4, the stack of open elements always contains a <html> root 
in the fragment case when there is a context element:

     Let root be a new html element with no attributes.
     ...
     Set up the parser's stack of open elements so that it contains just
     the single element root.

Best regards,

Michael

-- 
Prince: Print with CSS!
http://www.princexml.com
Received on Monday, 24 June 2013 02:24:52 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:22 UTC