W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] HTML parsing: "act as if...had been seen" using what insertion mode?

From: David Flanagan <dflanagan@mozilla.com>
Date: Fri, 07 Oct 2011 13:04:24 -0700
Message-ID: <4E8F5B48.8060803@mozilla.com>
The HTML parsing algorithm frequently includes directions like "act as 
if an end tag with the tag name 'p' had been seen".

Suppose the insertion mode is "in caption" mode.  It tells me to process 
a token using the rules for "in body" mode.  Then, while processing a 
token using those rules, I need to act as if a </p> tag or </option> tag 
had been seen.  My question: what insertion mode do I use to process 
that synthetic end tag?

Perhaps the spec could be modified to add a definition for "act as if" 
along with the definition for "using the rules for".

Received on Friday, 7 October 2011 13:04:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC