[whatwg] Another issue in parsing tokens in foreign content

Michael Day mikeday at yeslogic.com
Sun Jun 23 19:24:24 PDT 2013

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,


Prince: Print with CSS!

More information about the whatwg mailing list