W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: Undefined XML DOM Level 2 core 'Element.getAttribute' Behaviour

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Fri, 8 Feb 2002 13:27:43 -0500
To: <www-dom@w3.org>
Message-ID: <OF23836F21.EA638F43-ON85256B5A.006516BC@pok.ibm.com>

If you use non-namespace-aware calls to retrieve the attribute by name, and
there are several attributes which have that name (due to having been
created using the namespace-aware calls) -- a DOM may return _any_ of them.
It is hoped that it will consistantly return the same one given the same
source document, but that's about the best you can hope for.

Simple advice: Don't use the non-namespace-aware calls. They're provided
only for backward compatability with existing DOM Level 1 code, and can not
really be safely intermixed with the namespace-aware Level 2 methods. Treat
the old calls as deprecated.

______________________________________
Joe Kesselman  / IBM Research
Received on Friday, 8 February 2002 13:28:15 GMT

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