W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2005

Re: [dom3core] getAttribute

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 01 Dec 2005 16:03:14 +0100
To: "Kasimier Buchcik" <K.Buchcik@4commerce.de>
Cc: www-dom <www-dom@w3.org>
Message-ID: <op.s031fonq64w2qv@id-c0020.oslo.opera.com>

On Thu, 01 Dec 2005 15:41:57 +0100, Kasimier Buchcik  
<K.Buchcik@4commerce.de> wrote:
> Additionally you may want to consider what code you may break which
> does follow the current DOM API:
> If we have (e.getAttribute('foo') != "") then this will evaluate to
> true if:
>  - there is an attribute node
>  - its value is other than ""
> The change in behaviour you request, would evaluate this to true if:
>  - there is no such attribute node
>  - there is such attribute node and its value is other than ""

We did consider that. Some internal scripts (testcases) have to be changed  
and I believe some user scripts as well. Compared to what we gain with  
breaking the specification in this regard that is not really significant  
though. Being the only browser not to break the specification for  
getAttribute more was broken before than after the change (unfortunately).


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 1 December 2005 15:03:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT