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

RE: Attributes and ownerDocument

From: Kirkpatrick, Alfie <akirkpatrick@ims-global.com>
Date: Mon, 7 Sep 1998 15:38:09 +0100
Message-Id: <199809071446.KAA13584@www10.w3.org>
To: www-dom@w3.org, msabin@cromwellmedia.co.uk
I would have thought that ownerDocument should be non-null,
so that the Attribute can readily clone itself. However, this is
probably my COM bias talking again...

Alfie.

> ----------
> From: 	msabin@cromwellmedia.co.uk
> Sent: 	07 September 1998 15:25
> To: 	www-dom@w3.org
> Subject: 	Attributes and ownerDocument
> 
> According to PR-DOM-Level-1-19980818,
> 
>   DOM Attribute 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.
> 
> If it weren't for the fact that the immediately following sentence,
> 
>   Thus, the Node attributes parentNode, previousSibling,
>   and nextSibling have a null value for Attribute objects. 
> 
> doesn't mention ownerDocument I would have assumed that not being 'part
> of the document tree' would imply that this attribute would be null too.
> 
> Can anyone reassure me that a null value would be conforming?
> 
> Cheers,
> 
> 
> Miles
> 


Received on Monday, 7 September 1998 10:45:53 GMT

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