W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Re: Document.ownerDocument value

From: Garret Wilson <garret@globalmentor.com>
Date: Tue, 15 May 2001 17:03:43 -0500
Message-ID: <001801c0dd8a$e904b8c0$024a1f26@imaginet.fr>
To: "www-dom list" <www-dom@w3.org>
Now that I've reread the specification, maybe the sentence is:

if((node is document) || (node is documentType not used with document)
  ownerDocument is null

Maybe I was parsing the sentence incorrectly...


----- Original Message -----
From: "Garret Wilson" <garret@globalmentor.com>
To: "www-dom list" <www-dom@w3.org>
Sent: Tuesday, May 15, 2001 6:53 AM
Subject: Document.ownerDocument value

> Can someone confirm the value that Document.ownerDocument should return?
> guessing (and hoping) that it references the document itself, but this
> clear from the DOM 2 spec. The sentence, "When this node is a Document or
> DocumentType which is not used with any Document yet, this is null," is
> particularly confusing -- when is a Document not used with any Document?
> Garret
Received on Tuesday, 15 May 2001 18:04:12 UTC

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