W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1998

A few questions

From: Hank Davidson <hankd@corel.com>
Date: Tue, 19 May 1998 14:39:45 -0600
Message-ID: <3561EE11.72805244@corel.com>
To: www-dom@w3.org
There are a couple of areas I still don't understand.

Why doesn't the Attribute interface extend Node?  When there are methods
named getAttributeNode and setAttributeNode, it seems to imply that an
Attribute is a Node.  getAttributes() returns a NodeIterator, yet there
is no documented way to get the Attribute from the Nodes returned by the
iterator, unless an Attribute extends Node.

If an Attribute is a Node, and you call getParent on it, what should it
return?

In the Element interface, getElementByTagName doesn't return anything.
Should it return a NodeIterator?

BTW, I'd rather have an opinion than "we'll clarify it in the next spec"
:-)
Received on Tuesday, 19 May 1998 16:39:45 GMT

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