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

Re: Browser implementors? Re: [dom3core] getAttribute

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 02 Dec 2005 22:59:30 +0100
To: "Bjoern Hoehrmann" <derhoermi@gmx.net>
Cc: www-dom@w3.org
Message-ID: <op.s06fdgna64w2qv@id-c0020.oslo.opera.com>

On Fri, 02 Dec 2005 22:56:28 +0100, Bjoern Hoehrmann <derhoermi@gmx.net>  
wrote:
> * Anne van Kesteren wrote:
>> I'm not an Opera developer, but I'm wondering why getAttribute is
>> obsolete. I'd also rather have them consistently implemented.
>
> Using getAttribute and most other namespace-unaware methods makes your
> scripts less robust; while many implementations consider getAttribute(x)
> to mean getAttributeNS(null, x), this is not guranteed, so if the script
> depends on this assumption, it might break at some point in some user
> agent.

Indeed, I noticed this too. I believe the same is true for  
createElement(). These are also cases worthy of clarification imho.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Friday, 2 December 2005 21:59:37 GMT

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