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

Re: DOM L2 comments, various

From: Lauren Wood <lauren@sqwest.bc.ca>
Date: Thu, 25 Nov 1999 11:28:35 -0800
Message-Id: <199911251930.LAA17260@mail.sqwest.bc.ca>
To: www-dom@w3.org
On 27 Sep 99, at 8:01, David Brownell wrote:

> A few more comments on the core, and a correction to what I said earlier.
> The NamedNodeMap.setNamedItemNS method seems to be missing.

Added.

> 1.1.1	The description of "Document" should also say that there may only
> 	be a maximum of one DocumentType; it's not just true for Elements.

Fixed.

> 1.2	DOMImplementation.createDocumentType ... the more I look at it,	
> 	the less I like the notion that the document type be associated
> 	with some document "late" in the game.  Every node in the doctype
> 	then needs to be able to get coupled "late" to an owning document,
> 	rather than being so coupled from day one.  That basically means
> 	every type of node in the whole DOM, not just DocumentType, may
> 	need to work with a null ownerDocument.  Yuck.

We agreed not to allow addition or removal of a DocumentType node from a document. A newly created DocumentType can only be used for creating a new Document. 

> 1.2	Node.cloneNode ... clones are always mutable, yes?  Needs stating;
> 	else a conformant implementation couldn't support the process that
> 	was outlined with Entity nodes (mutating clones of readonly nodes).

Fixed.

> 1.2	NamedNodeMap.*ItemNS ... what should this do when being used to
> 	access items (notations and entities from the DTD) that aren't
> 	scoped with namespaces?  How about if the namespace URI is null?

Still being discussed.

> 	NamedNodeMap.setNamedItemNS ... no such method; why?  Everywhere
> 	else there are both namespace-naive and namespace-aware methods,
> 	but this one (very important!) case is omitted.

Added.

> 	NamedNodeMap.removeNamedItem ... should be able to report an
> 	error (NO_MODIFICATION_ALLOWED_ERR) for readonly maps, just
> 	like the setNamedItem method.

Correct; fixed.

> 	NamedNodeMap.item ... negative indices should return null too

Yes, I think so.

> 1.3	DocumentType ... please change the "publicID" and "systemID" to
> 	match the case ("Id" not "ID") in Notation and Entity nodes.  It's
> 	a gratuitous change in convention, and complicates some code
> 	sharing that would otherwise be natural.

Fixed.

Lauren
Received on Thursday, 25 November 1999 14:33:44 GMT

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