W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] input element's value should not be sanitized during parsing

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 14 Jun 2011 23:41:56 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1106142340280.14203@ps20323.dreamhostps.com>
On Tue, 14 Jun 2011, Jonas Sicking wrote:
> 
> The problem, if I understand things correctly, is that setAttribute is 
> *not* order agnostic, while the parsing code is expected to be. This 
> means that we can't use the same code paths for setAttribute and 
> parsing.

You can, you just have to have a special "initialisation" signal that the 
parser sends to an element after its set its attributes.


> This is not acceptable to us in Gecko. We're not willing to have two 
> code paths for setting attributes.

You already _have_ two code paths. The example you gave shows that the 
parser is order agnostic but the equivalent DOM code is not.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 14 June 2011 16:41:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC