[wpt-sync] Sync PR 29977 - Revert "Make classlist update for XML namespace nodes"
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox93 fixed)
| Tracking | Status | |
|---|---|---|
| firefox93 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 29977 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/29977
Details from upstream follow.
b'Mason Freed <masonf@chromium.org>' wrote:
Revert "Make classlist update for XML namespace nodes"
This reverts commit 5e25e22bb1642b26bc87e097ca00f54dd6ed8b88.
Reason for revert: Many perf regressions:
Original change's description:
Make classlist update for XML namespace nodes
Prior to this CL, CSS selectors like
.classnamewould not match
XML namespace elements that had aclassattribute with a value
ofclassname. However,*[class~="classname"]would match those
elements, querySelectorAll() would also match, and (perhaps most
importantly), Gecko, Webkit, and the spec all indicated that these
elements should be matched:https://dom.spec.whatwg.org/#dom-element-classname
This could cause a minor perf regression, since ElementRareData will
be attached in more cases (memory regression), and the early-outs
in UpdateClassList have been removed (speed regression). I am
hopeful that these should be minor for ordinary HTML usage, but
we'll see.Fixed: 649444
Change-Id: Ic846722830d76df801d2a8e33c360bfa41822cf6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3077706
Commit-Queue: Mason Freed \<masonf@chromium.org>
Auto-Submit: Mason Freed \<masonf@chromium.org>
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#910038}Change-Id: Ie5cb1955adf7638d11d1a850d4a6201384141ea6
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3086222
Bot-Commit: Rubber Stamper \<rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Mason Freed \<masonf@chromium.org>
Cr-Commit-Position: refs/heads/master@{#910450}
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
| Assignee | ||
Comment 4•4 years ago
|
||
Comment 5•4 years ago
|
||
| bugherder | ||
Description
•