- From: <bugzilla@jessica.w3.org>
- Date: Fri, 21 Jun 2013 09:35:17 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22343 --- Comment #10 from Dominic Cooney <dominicc@chromium.org> --- (In reply to comment #9) > The difference between createElement("audio") and new Audio() is that the > latter sets an attribute. I think we might want to end up with doing that > for both though so that the former can simply map to the latter. Ah, interesting--I did not know this. > But there are no constructors at the moment. And I'm not sure we want to > make HTMLModElement a constructor. It has no tie to any particular local > name. It'd be like making Node a constructor. Maybe this is just a naming issue... I believe Scott wants a function which has these two properties: o.f(x).prototype === Object.getPrototypeOf(document.createElement(x)) document.createElement(x) instanceof o.f(x) With the proposal that o is one of {HTMLElement, SVGElement} and f is getConstructorForTagName. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Friday, 21 June 2013 09:35:18 UTC