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

Re: Browser implementors? Re: [dom3core] getAttribute

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 02 Dec 2005 22:56:28 +0100
To: "Anne van Kesteren" <annevk@opera.com>
Cc: www-dom@w3.org
Message-ID: <ndg1p1dtnjvju4u11eu6pt7plvo1qvr1mj@hive.bjoern.hoehrmann.de>

* 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.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Saturday, 3 December 2005 16:43:14 GMT

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