Re: Monkeypatching document.createElement() is wrong

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 UTC