WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 182671
Bug 195403
Customized built-in elements aren't supported
https://bugs.webkit.org/show_bug.cgi?id=195403
Summary
Customized built-in elements aren't supported
Andreas Deuschlinger
Reported
2019-03-07 00:25:42 PST
The HTML Living Standard for Custom Elements specifies support to extend existing built-in elements, by: - the `is="my-button"` attribute
https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
- the `document.createElement('button', { is: 'my-button' })` second argument
https://dom.spec.whatwg.org/#dom-elementcreationoptions-is
Example:
https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example
The Webkit Status page gives incorrect information claiming that Custom Elements V1 are supported, though in fact only "autonomous custom elements" are supported.
https://webkit.org/status/#feature-custom-elements
Caniuse informs about this incomplete implementation correctly:
https://caniuse.com/#feat=custom-elementsv1
Attachments
Add attachment
proposed patch, testcase, etc.
arjunyel+webkit.bugzilla
Comment 1
2019-03-08 11:53:01 PST
Previous discussion about this on Github
https://github.com/w3c/webcomponents/issues/509#issuecomment-222860736
Ryosuke Niwa
Comment 2
2019-03-09 18:24:45 PST
Our position has been that this feature shouldn't exist in the spec in the first place. I really don't understand how we ended up allowing Google to keep this feature in the HTML5 spec despite of our repeated objections. *** This bug has been marked as a duplicate of
bug 182671
***
Andreas Deuschlinger
Comment 3
2019-03-12 03:14:19 PDT
Thanks a lot for your quick feedback:) Meanwhile i came across element behaviors a the suggested has attributes:
https://www.npmjs.com/package/element-behaviors
Which is what I would really need:) But gies beyond this ticket...
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug