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

Ian Hickson ian at hixie.ch
Thu Jan 12 12:29:14 PST 2006


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list