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

Re: Is appendChild/insertBefore() supposed to raise exceptions for attributes?

From: Frans Englich <frans.englich@telia.com>
Date: Fri, 22 Dec 2006 13:26:53 +0100
To: www-dom@w3.org
Message-Id: <200612221326.53521.frans.englich@telia.com>

On Friday 22 December 2006 12:37, you wrote:
> Hi everyone,
> Me and my co-developer were discussing how attributes are to be treated
> within DOM.
> For interface Attr, this paragraph can be found:
> "Attr objects inherit the Node interface, but since they are not actually
> child nodes of the element they describe, the DOM does not consider them
> part of the document tree. Thus, the Node attributes parentNode,
> previousSibling, and nextSibling have a null value for Attr objects. "

Also, how should one set ownerElement of the Attr when calling 
setAttributeNode? Should setAttributeNode do it? The spec doesn't say that, 
as far as I can tell.


Received on Friday, 22 December 2006 12:25:46 UTC

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