[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

Dominic Cooney <dominicc@chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dominicc@chromium.org

--- Comment #1 from Dominic Cooney <dominicc@chromium.org> ---
This sounds reasonable to me. So the proposal is

partial interface Document {
  any getConstructorForTag(DOMString tag);
}

?

Is there a more precise type for these than "any"?

I assume this returns constructors for registered custom elements? Does that
present any problems for people using Custom Elements with ES6 classes?

What does it do if there's no such tag? Raise NotFoundError? Return
HTMLUnknownElement?

What about accessing SVG element constructors?

Just out of curiosity--why constructors and not prototypes?

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

Received on Thursday, 13 June 2013 11:07:34 UTC