[whatwg] successful form controls

Simon Pieters zcorpan at gmail.com
Tue Sep 18 09:47:11 PDT 2007


On Tue, 18 Sep 2007 18:26:19 +0200, Křištof Želechovski  
<giecrilj at stegny.2a.pl> wrote:

> What makes you think that a radio button can be checked?  My trust in  
> your
> statement will be inversely proportional to its self-confidence.  Please  
> use
> some supporting arguments instead of bold assurances.

Perhaps you could check the specs or try it in some browser? :-)

HTML4:

    http://www.w3.org/TR/html401/interact/forms.html#adef-checked

DOM2 HTML:

    http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-30233917

Try it:

    http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A%3Cp%3EUnchecked%20(default)%3A%20%3Cinput%20type%3Dradio%3E%0D%0A%3Cp%3EChecked%20with%20attribute%3A%20%3Cinput%20type%3Dradio%20checked%3E%0D%0A%3Cp%3EChecked%20with%20script%3A%20%3Cinput%20type%3Dradio%20name%3Dfoo%3E%0D%0A%3Cscript%3E%20foo.checked%20%3D%20true%20%3C%2Fscript%3E

-- 
Simon Pieters



More information about the whatwg mailing list