by Janwillem Borleffs <jw@[EMAIL PROTECTED]
>
May 8, 2008 at 12:40 PM
RobG schreef:
> The DOM 2 Core specification says that getAttribute should return the
> value of an attribute as a string, however attributes such as
> disabled, checked, readonly, etc. don't have values specified in the
> HTML specification, it just specifies a behaviour if the attribute is
> present or not. The DOM HTML spec says that such attributes should
> return true or false, e.g. Inteface HTMLInputElement:
>
The common way to specify this according to the current standards is:
<... disabled="disabled"/>
Browsers will parse this the same way as the old notation.
JW