[Bug 22343] [Custom]: Need a function to retrieve a constructor (or prototype) by localName

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22343

--- Comment #14 from Dominic Cooney <dominicc@chromium.org> ---
(In reply to comment #13)
> You don't think it would be better to first introduce constructors?

I think with constructors, this mapping is still useful. I'm not sure about the
order of moves here... do you think constructors will happen in a nontrivial
timeframe?

> Such as
> HTMLH1Element and co? Because at that point that method would return
> different results and it would be somewhat unfortunate if people started to
> rely on the current results (although they might already to some extent I
> suppose).

HTMLElement.getPrototypeForTagName('h1') has better backwards compat than
HTMLHeadingElement.prototype.

It is true that web developers could start to depend on some specific aspects
of the object getPrototypeForTagName returns, like prototype chain depth, and
that would be unfortunate.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 24 June 2013 14:52:02 UTC