Re: Monkeypatching document.createElement() is wrong

On Tue, 12 Feb 2013 12:24:59 +0100, Anne van Kesteren <>  

> If the goal of custom elements is to expose the guts of what happens
> 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