Re: Document.ownerDocument value

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 UTC