W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

Re: Monkeypatching document.createElement() is wrong

From: Simon Pieters <simonp@opera.com>
Date: Mon, 18 Mar 2013 10:56:04 +0100
To: "WebApps WG" <public-webapps@w3.org>, "Anne van Kesteren" <annevk@annevk.nl>
Message-ID: <op.wt4y7qweidj3kv@simons-macbook-pro.local>
On Tue, 12 Feb 2013 12:24:59 +0100, Anne van Kesteren <annevk@annevk.nl>  
wrote:

> If the goal of custom elements is to expose the guts of what happens
> https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#monkeypatch-create-element
> is the wrong solution. Currently new Image() and createElement("img")
> are equivalent and no additional magic is required. Same for new
> Audio() and createElement("audio").

Not quite, actually. new Audio() sets the content attribute preload="auto".

-- 
Simon Pieters
Opera Software
Received on Monday, 18 March 2013 09:56:43 GMT

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