W3C home > Mailing lists > Public > public-html@w3.org > August 2009

Re: Infinite loop in fragment case

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 4 Aug 2009 23:55:30 +0000 (UTC)
To: Geoffrey Sneddon <gsneddon@opera.com>
Cc: HTMLWG WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0908042350080.6420@hixie.dreamhostps.com>
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

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:53 UTC