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

Re: L3 Core: Element.getIdAttribute() and Element.getIdAttributeNode for convenience

From: Philippe Le Hegaret <plh@w3.org>
Date: Mon, 05 Jan 2004 13:51:14 -0500
To: "Oleg S. Estehin" <olest@mail.ru>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1073328674.28167.10.camel@jfouffa.w3.org>

On Thu, 2003-10-23 at 13:30, Oleg S. Estehin wrote:
> If there are explicit setIdAttribute[|NS|Node]() methods then it seems quite
> logical that explicit getIdAttribute() should also be present.

setIdAttribute* indicates whether an attribute should be considered of
type id or not. More than on attribute could be set that way, and
getIdAttribute would have to return a list of Attr nodes. We believe
that the current proposal fulfills the use case we were trying to
address: if you don't a schema or a DTD to indicate ID attribute, how
can you use getElementById()? Note that it would be easy to implement
your getIdAttribute function using the existing Attr.isId attribute. No
changes were done to the specification following your proposal,
let us know if you are satisfied or not with our decision,

Received on Monday, 5 January 2004 13:51:16 UTC

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