Re: Speculative tokenization and foreign content

On Wed, 10 Dec 2008, Henri Sivonen wrote:
> 
> We haven't come up with a good way to speculate past <![CDATA[, 
> <script>, <style>, <title>, <textarea>, <xmp>, <iframe>, <noembed>, 
> <noframes>, <noscript> and <plaintext> when <math> or <svg> has been 
> seen.

It's worse than just that. Consider <math><mtext><select>. Without running 
tree construction, you don't know what mode you're in here either.


> This email doesn't contain a spec change suggestion. Instead, the 
> purpose of this email is to ask for ideas on how to solve this issue. 
> Does anyone have ideas on how to deal with this?

Can you run the tree construction code in a limited dummy mode that just 
goes through the few required motions without creating state?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 25 December 2008 11:11:24 UTC