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

Re: ownerDocument property

From: Johnny Stenback <jst@netscape.com>
Date: Tue, 04 Jul 2000 15:56:23 +0300
Message-ID: <3961DEF7.246E7DCE@netscape.com>
To: "K. Ari Krupnikov" <ari@iln.net>
CC: www-dom@w3.org
"K. Ari Krupnikov" wrote:
> Can someone shed some light on the ownerDocument of nodes created by a
> DocumentFragment?
> The Rec says the DocumentFragment interface extends the Document
> interface but says little about DocumentFragmnet implementation.
> DocumentFragment inherits all createXxx methods of Document. Should its
> implementation of these methods be different, or can it delegate them to
> Document? Specifically, what should be in the ownerDocument of these
> newly created Nodes - the DocumentFragment that created them, or the
> DocumentFragment's ownerDocument?

According to the DOM Level 1 spec and the current DOM Level 2 CR, the
DocumentFragment does *not* inherit Document, it simply inherits Node.
IOW there are no createXXX methods on document fragments.



> --
> K. Ari Krupnikov
> DBDOM - bridging XML and relational databases
> http://www.iter.co.il

Received on Tuesday, 4 July 2000 08:56:49 UTC

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