Closed Bug 1824486 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 39198 - Fix attr-associated element reflection for disconnected nodes

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 39198 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/39198
Details from upstream follow.

Mason Freed <masonf@chromium.org> wrote:

Fix attr-associated element reflection for disconnected nodes

Nothing in the spec [1] says that attr-associated elements should
not be functional when disconnected from the document. The prior
code would always return null for these references, however. This
fixes the code and adds a test.

[1] https://html.spec.whatwg.org/#attr-associated-element

Fixed: https://crbug.com/1427374
Change-Id: I9897cd33310bd13e7acb4a1a122b3614e99edba7
Reviewed-on: https://chromium-review.googlesource.com/4371122
WPT-Export-Revision: 2a12f9af5d5c0af21748a346e655012c3d255ee2

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Test result changes from PR not available.
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/915a7a4d2aba [wpt PR 39198] - Fix attr-associated element reflection for disconnected nodes, a=testonly https://hg.mozilla.org/integration/autoland/rev/52cbddc0bcd2 [wpt PR 39198] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.