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

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

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 13 Dec 2011 23:55:35 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1112132351590.18028@ps20323.dreamhostps.com>
On Fri, 7 Oct 2011, David Flanagan wrote:
> 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?

Doesn't matter. Either "in body" or "in caption" will have the same effect 

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

I've added a paragraph that mentions a definition for "act as if". I 
haven't actually hyperlinked all the uses of the term as there's a lot of 

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 13 December 2011 15:55:35 UTC

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