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

Re: another ownerDocument property question

From: Philippe Le Hegaret <plh@w3.org>
Date: Wed, 05 Jul 2000 07:29:06 -0400
Message-ID: <39631C02.322AB9D9@w3.org>
To: "K. Ari Krupnikov" <ari@iln.net>
CC: www-dom@w3.org
"K. Ari Krupnikov" wrote:
> Now what about DocumentType?
> 
> interface DocumentType : Node
> 
> It apperars that several Documents may share a DocumentType. What then
> should be that DocumentType's ownerDocument?

The DocumentType can't be shared between documents. In DOM Level 2, the
DocumentType interface also contains the internal subset. When a DocumentType
is not used with any document yet, ownerDocument is null.

Philippe
Received on Wednesday, 5 July 2000 07:29:07 GMT

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