[dom3core] getAttribute

Currently the DOM Level 3 Core specification (and earlier Core editions of  
the DOM specifications) specifies that the getAttribute method on the  
Element interface return the empty string for unspecified attributes[1].

Opera has implemented this behavior.

However, other browsers return null. Where other browsers are Internet  
Explorer, Firefox, Safari, Konquerer and iCab. As developers typically  
develop against the market leader there is a lot of code like:

  getAttribute('foo') != null

... out there. As "" does not compute to null... Opera will probably  
change its behavior to be in line with the above mentioned browsers. Is  
there a possibility for getting erratum on getAttribute and related  
methods?


[1]<http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-666EE0F9>


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Friday, 18 November 2005 22:15:55 UTC