Re: Element.create(): a proposal for more convenient element creation

On Tue, 2 Aug 2011, João Eiras wrote:
> 
> However, Nodes need a ownerDocument, and that needs to be supplied, even 
> if optionally. Doing document.createElement implies the document, 
> Element.create does not.

Just use the same document as new Image(), new Option(), or new Audio().

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 2 August 2011 04:24:14 UTC