W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] [wf2] checked, defaultChecked and "checked"

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 12 Jan 2006 20:29:14 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0601122025310.2856@dhalsim.dreamhost.com>
On Thu, 12 Jan 2006, Anne van Kesteren wrote:
> The defaultChecked DOM attribute and the "checked" content attribute are
> identical in Firefox and Opera.
> Modifying the checked DOM attribute only checks and unchecks the 
> checkbox. It does not affect the defaultChecked DOM attribute. This is 
> consistent in all three browsers.

This is what DOM2 HTML says, as far as I can tell.

> In Firefox and Opera setting and removing the "checked" attribute is reflected
> in the checkbox. (It gets checked and unchecked.) In Internet Explorer only
> setting the "checked" attribute is reflected (the checkbox gets checked).
> Removing the attribute does not change the state.

This should (as required by DOM2 HTML) do what setting/unsetting 
defaultChecked does.

> Ian, any chance this can be incorperated in WF2 at some point so this 
> gets consistent?

This should all be covered by DOM2 HTML, as it is not new features.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 12 January 2006 12:29:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:44 UTC