[wpt-sync] Sync PR 51322 - Check whether an element is custom in the spec-compliant way
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox138 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 51322 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/51322
Details from upstream follow.
Xiaocheng Hu <xiaochengh.work@gmail.com> wrote:
Check whether an element is custom in the spec-compliant way
Current code checks whether an element is custom by checking whether it has an associated custom element definition. This is different from the spec, which says:
An element whose custom element state is "custom" is said to be custom.
The two definitions are identical in almost all cases, except during custom element upgrade, where the custom element state is set to
failed
until finished.As a result, the current implementation may erroneously fire custom element callbacks for mutations during the upgrade.
This PR fixes it.
Reviewed in servo/servo#35960
Assignee | ||
Updated•5 months ago
|
Assignee | ||
Comment 1•5 months ago
|
||
Assignee | ||
Comment 2•5 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 6 subtests
Status Summary
Firefox
OK
: 1
PASS
: 6
Chrome
OK
: 1
PASS
: 6
Safari
OK
: 1
PASS
: 6
Description
•