[whatwg] HTML parsing: "act as if...had been seen" using what insertion mode?
Ian Hickson
ian at hixie.ch
Fri Oct 7 13:38:12 PDT 2011
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?
>
> Perhaps the spec could be modified to add a definition for "act as if"
> along with the definition for "using the rules for".
I'll fix it. Quickly though, the answer is that it uses the current actual
mode, but in practice I wouldn't be surprised if it actually made no
difference (I haven't verified that though).
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list