Closed Bug 1440382 Opened 7 years ago Closed 7 years ago

[FIX] Implement changes to is="" attribute for customized built-ins

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

55 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: d, Assigned: smaug)

References

Details

Attachments

(3 files, 1 obsolete file)

Priority: -- → P3
Blocks: 1419661
Some spec issues https://github.com/whatwg/dom/issues/659 https://github.com/whatwg/html/issues/3776 I'm planning to not set is value on non-builtins ever (so is value is set only if localName isn't possibly CE name) And when using new Foo() for builtins, is value is set to CE name.
Attached patch is_value.diff (obsolete) — Splinter Review
I need to still write some tests for XML and XHTML serialization. That part is untested. remote: View your change here: remote: https://hg.mozilla.org/try/rev/fe174b6bd59d5a29b374ade982a96c8f42f9beda remote: remote: Follow the progress of your build on Treeherder: remote: https://treeherder.mozilla.org/#/jobs?repo=try&revision=fe174b6bd59d5a29b374ade982a96c8f42f9beda remote: recorded changegroup in replication log in 0.109s
Assignee: nobody → bugs
Attached patch is_value_2.diffSplinter Review
Some more test fixes and added tests for nsIDocumentEncoder. The patch is a bit large, but most of it is just tests and removal of .ini-files because we now pass tests. I added nsINode::ElementHasCustomElementData flag, because serializing innerHTML is extremely hot code, so couple of indirect accesses to get GetCustomElementData wouldn't be acceptable. remote: View your change here: remote: https://hg.mozilla.org/try/rev/3e5b8c0642db5f732f812a30e6cad04ba59f3a08 remote: remote: Follow the progress of your build on Treeherder: remote: https://treeherder.mozilla.org/#/jobs?repo=try&revision=3e5b8c0642db5f732f812a30e6cad04ba59f3a08 remote: recorded changegroup in replication log in 0.108s
Attachment #8988021 - Attachment is obsolete: true
Attachment #8988129 - Flags: review?(mrbkap)
Summary: Implement changes to is="" attribute for customized built-ins → [FIX] Implement changes to is="" attribute for customized built-ins
Comment on attachment 8988129 [details] [diff] [review] is_value_2.diff Review of attachment 8988129 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/base/CustomElementRegistry.h @@ +132,5 @@ > void Unlink(); > > + nsAtom* GetIs(Element* aElement) > + { > + return aElement->NodeInfo()->NameAtom() == mType ? nullptr : mType.get(); Maybe add a comment about why we do this check. A reference to the spec, once it gets updated would be good, too.
Attachment #8988129 - Flags: review?(mrbkap) → review+
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/9fe49c825ba3 there should be no is-attribute, only internal is-value, in custom elements, r=mrbkap
Backout by ebalazs@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ba9f589d1c01 Backed out changeset 9fe49c825ba3 for causing bustage in builds/worker/workspace/build/src/dom/base/nsNodeUtils.cpp
Attached patch is_value_4.diffSplinter Review
Flags: needinfo?(bugs)
Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/08ae7c356bbe there should be no is-attribute, only internal is-value, in custom elements, r=mrbkap
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: