W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] Question on "the element's Document"

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 5 Oct 2009 23:38:32 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0910052333400.25383@hixie.dreamhostps.com>
On Mon, 21 Sep 2009, Boris Zbarsky wrote:
>
> Section 2.6, item 3 says [1]:
> 
>   When fetching resources for an element
>      The element's Document.
> 
> Is that supposed to be the element's ownerDocument?  Or something else?  The
> term seems to be underdefined.

>From the Terminology/DOM trees section:

# The Document of a Node (such as an element) is the Document that the 
# Node's ownerDocument IDL attribute returns.


> It's also not defined whether the document is to be examined at the moment
> when running the fetch steps or at the "time convenient to the user and the
> user agent" when the download happens.  This might matter for, e.g. script
> that does something like:
> 
>   var img = doc1.createElement("img");
>   img.src = something;
>   doc2.adoptNode(img);

Fixed, thanks.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 5 October 2009 16:38:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:17 UTC