Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Re: getAttribut...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 35521 of 37137
Post > Topic >>

Re: getAttribute question

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
 




 5 Posts in Topic:
getAttribute question
RobG <rgqld@[EMAIL PRO  2008-05-07 23:55:53 
Re: getAttribute question
Janwillem Borleffs <jw  2008-05-08 12:40:13 
Re: getAttribute question
Thomas 'PointedEars' Lahn  2008-05-08 14:54:29 
Re: getAttribute question
RobG <rgqld@[EMAIL PRO  2008-05-08 19:46:03 
Re: getAttribute question
Thomas 'PointedEars' Lahn  2008-05-09 15:08:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 16:19:03 CDT 2008.