[Bug 20913] [Custom]: Meaning of prototype in document.register is underspecified

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

--- Comment #2 from Boris Zbarsky <bzbarsky@mit.edu> ---
Being backed "by the proper HTMLButtonElement" on the C++ side while not having
a localName of "button" is, imo, a non-starter.

There's lots of code in both C++ and JS that examines the localName when
working with the object and assumes that buttons will be "button".  So creating
something that's an HTMLButtonElement with a different localName means that it
will work in some ways but not in others, and generally be broken.

It's not just style matching that depends on the localName; it's context menus,
creation of special CSS boxes, serialization behavior, editing behavior.  The
list is quite long.

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

Received on Friday, 8 February 2013 23:04:25 UTC