W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

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

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 2 Aug 2011 04:23:42 +0000 (UTC)
To: João Eiras <joao.eiras@gmail.com>
cc: WebApps WG <public-webapps@w3.org>
Message-ID: <Pine.LNX.4.64.1108020423270.18680@ps20323.dreamhostps.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:46 GMT