Issue metadata
Sign in to add a comment
|
Launch customized built-in elements |
||||||||||||||||||||||||||||||||||||
Issue descriptionChange description: Implement the part of custom elements which allows you to use an existing tag name and get that built-in element's semantics. Changes to API surface: - customElements.define process the 'extends' option of the second argument. - createElement processes the 'is' option of the second argument. - HTML parsing handles elements with an "is" attribute differently. For links, support in other browsers, etc. see https://www.chromestatus.com/feature/4670146924773376
,
Oct 21 2016
As of today, things still not working:
1. `new CustomBuiltIn()` throws `Illegal constructor`
2. `document.createElement("button", { is: "plastic-button" })` as specified in the official example ( https://html.spec.whatwg.org/multipage/scripting.html#custom-elements-customized-builtin-example ) creates `<button is="[object Object]"></button>`
3. `document.createElement('button', 'plastic-button')` would create a proper `<button is="plastic-button"></button>` but it won't even bother using the defined constructor
,
Oct 25 2016
yurak is working on this.
,
Oct 26 2016
,
Oct 26 2016
,
Oct 26 2016
,
Oct 31 2016
,
Jan 20 2017
The assigned owner "yurak@google.com" is not able to receive e-mails, please re-triage. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 20 2017
Is this still being worked on? Can I somehow help this?
,
Jan 20 2017
,
Jan 23 2017
Yes, it is still being worked on--yurak's internship has finished. mr.avgp, we'd love help, could you send me email and describe a little about your skills and interests and I'll help.
,
Jan 24 2017
,
Apr 6 2017
Hi. Any updates on this?
,
Apr 6 2017
meanwhile I have some failing tests and try to implement the fixes, but I am a little swamped with work right now =(
,
Apr 9 2017
Just FYI: Baby steps in the right direction. ;-)
,
Jun 2 2017
How is this going? The community is keen to try this out! Thanks for keeping going on this.
,
Jun 2 2017
You can try this today for DIV and P by setting the --enable-blink-features=CustomElementsBuiltin flag. Feedback welcome.
,
Jun 7 2017
In Canary with this flag enabled I get 2 kinds of errors. 1. Chrome tells me it's an unsupported flag (even though there is a difference with a without it) 2. Illegal constructor, same I get when I <big-button> the element instead of <button is="big-button"> No error 2 without the [is]. No error 1 without the flag, but also no other errors or messages, probably because it doesn't do anything. The real test for me is to make custom TD elements that work without webcomponents (so <td is="custom-td">, not <custom-td>), but I don't have that test handy.
,
Jun 7 2017
Since BUTTON is not DIV or P, that might be my fault =) Sorry! `<p is="big-p">Huge paragraph!</p>` works (messages and custom shadow root), but `<big-p>Huge paragraph!</big-p>` doesn't work: no messages, no errors, <big-p> just falls back to a non-existing element
,
Sep 12 2017
This issue has been automatically relabelled type=task because type=launch-owp issues are now officially deprecated. The deprecation is because they were creating confusion about how to get launch approvals, which should be instead done via type=launch issues. We recommend this issue be used for implementation tracking (for public visibility), but if you already have an issue for that, you may mark this as duplicate. For more details see here: https://docs.google.com/document/d/1JA6RohjtZQc26bTrGoIE_bSXGXUDQz8vc6G0n_sZJ2o/edit For any questions, please contact owencm, sshruthi, larforge
,
Jan 15 2018
Bulk edit bugs owned by dominicc@
,
Jan 24 2018
We don't need a launch-tracking bug for this feature. Please use Issue 648828 if you have any comments on this feature.
,
Jan 24 2018
|
|||||||||||||||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||||||||||||||
Comment 1 by hayato@chromium.org
, Oct 12 2016