[imps] td fragments
Ian Hickson
ian at hixie.ch
Thu Apr 3 11:34:41 PDT 2008
On Thu, 3 Apr 2008, Henri Sivonen wrote:
> > >
> > > Can someone, please, explain to me, what part of the spec makes the
> > > insertion mode "in body" when the context is "td" or "th" in the
> > > fragment case?
> >
> > None. It's "in cell".
>
> Why? That is, based on what normative statements in the spec?
>
> "3 If node is the first node in the stack of open elements, then set
> last to true; if, in addition, the context element of the HTML fragment
> parsing algorithm is neither a td element nor a th element, then set
> node to the context element. (fragment case)"
>
> Now /node/ is "html"--not "td".
>
> "5 If node is a td or th element, then switch the insertion mode to "in
> cell" and abort these steps. "
>
> This doesn't match, since it is "html"--not "td".
Hm, I wonder what that line is doing there. It seems we should remove the
"if, in addition, the context element of the HTML fragment parsing
algorithm is neither a td element nor a th element" condition, or make
that particular situation trigger "in body" rather than "before head".
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the Implementors
mailing list