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

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