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

Re: [dom3core] getAttribute

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Fri, 18 Nov 2005 17:37:01 -0500
To: "Anne van Kesteren" <annevk@opera.com>
Cc: "DOM mailing list" <www-dom@w3.org>, www-dom-request@w3.org
Message-ID: <OF868177CF.4F26DDDF-ON852570BD.007BF5A2-852570BD.007C3D69@us.ibm.com>

Personal reaction: If all the other browsers really are wrong... They're
still wrong, and we should be beating them up and trying to get them to fix
it rather than endorsing this error.

But I have a bit of trouble believing this assertion.

If folks want to distinguish between empty attribute and absent attribute,
they should be using getAttributeNode(), which *does* return null for an
empty node.

Are you sure you aren't confusing these two calls, or working in a language
binding that masks the difference between null and empty string?

Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
Received on Friday, 18 November 2005 22:47:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC