W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1999

Re: New DOM Level 2 Working Draft

From: Arnaud Le Hors <lehors@w3.org>
Date: Mon, 27 Sep 1999 15:37:21 +0200
Message-ID: <37EF7311.95465500@w3.org>
To: "Stephen R. Savitzky" <steve@rsv.ricoh.com>
CC: www-dom@w3.org
"Stephen R. Savitzky" wrote:
> 1. The ownerElement method of Attr conflicts with the statement that
>    "attributes are not part of the document tree".  Unless I'm missing
>    something, ownerElement is essentially the same as parentNode, and means
>    that Attr's cannot be shared.

This is correct but it isn't new. DOM Level 1 already prohibits you from
sharing an Attr node. Indeed, setAttributeNode() raises an
INUSE_ATTRIBUTE_ERR DOMException if you try. Given that, we decided to
go ahead and add ownerElement which a lot of people have requested.

> 2. There doesn't seem to be any way to create an Iterator from a NodeList or
>    NamedNodeMap.  In this regard it is also unfortunate that NamedNodeMap is
>    not an extension of NodeList.
> 3. Ideally, all methods that return NodeList should be deprecated and
>    replaced by methods that return an equivalent Iterator.
> 4. A Document should be able to import a TreeWalker.

All of these can be added later so there is no real harm not to have
them now. And something gets added when someone thinks it is necessary
enough to lobby for it and can convince the rest of the group it really
is necessary.

> 6. There still doesn't seem to be any way to represent all of the
>    information in a DTD. Among other things, shouldn't there be a "notation"
>    attribute of "Attr"?  I believe that not including all of the DTD
>    information violates the claim that "... For XML, this is specified by
>    the W3C XML Information Set [Infoset].  The DOM is simply an API to this
>    information set", since the XML Information Set includes the complete DTD.

I don't know where you got that from but it is incorrect. The XML
Information Set only includes some information from the DTD. It doesn't
include an element content type for instance.
Anyway, support for DTDs and schemas is definitely on our list for DOM
Level 3. Stay tuned.
Received on Monday, 27 September 1999 09:37:42 UTC

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