On Jan 19, 9:33 am, fernando trasvina <trasv...@gmail.com> wrote:
> you can also check the W3C DOM spec 
> athttp://www.w3.org/TR/html401/interact/forms.html#adef-checked
>
> Attribute definitions
> ....
> checked [CI]
> When the type attribute has the value "radio" or "checkbox", this boolean 
> attribute specifies that the button is on. User agents must ignore this 
> attribute for other control types.

But some browsers don't, they are inconsistent in many ways, as are
implementations of get/setAttribute.

Just don't use attributes in code (standard attributes in HTML are
fine). Use DOM properties, always.


--
Rob

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to