W3C home > Mailing lists > Public > public-html@w3.org > December 2008

Re: Speculative tokenization and foreign content

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 25 Dec 2008 11:10:47 +0000 (UTC)
To: Henri Sivonen <hsivonen@iki.fi>
Cc: HTML WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0812251108500.24109@hixie.dreamhostps.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:27 GMT