Re: Infinite loop in fragment case

On Wed, 29 Jul 2009, Geoffrey Sneddon wrote:
>
> Setting innerHTML on a select element to a start tag of one of "input", 
> "keygen", "textarea" causes an infinite loop. You have to act as if a 
> "select" end tag has been seen, before reprocessing the token, but then 
> you ignore the "select" end tag in fragment case, hence reprocessing the 
> token in the same state, leading you on your way to an infinite loop. 
> It'd be kinda nice to fix this.

Fixed. Good catch. Thanks.

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

Received on Tuesday, 4 August 2009 23:56:05 UTC