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...

Garret

----- 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?
I'm
> guessing (and hoping) that it references the document itself, but this
isn't
> clear from the DOM 2 spec. The sentence, "When this node is a Document or
a
> 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 GMT

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