Closed Bug 1776332 Opened 3 years ago Closed 3 years ago

Add tentative WPT for checking the handling of `id` attribute at join/split element

Categories

(Core :: DOM: Editor, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.

We have similar tests under mozilla. However, for Interop2022-editing, we
should rewrite it with the modern style and mark it "tentative".

It does not matter how to split an element and its ancestors here. The test
check only how attributes of splitting element and its ancestors. All
attributes should be cloned, but id attributes shouldn't, at least, there
should not be 2 elements which share same id value.

Chrome duplicates id attributes, so Chrome fails to pass of the checks, but
passes the other checks.

Depends on D150219

Similar to the previous patch, this adds tentative tests. Different from the
previous tests, joining shouldn't touch attributes of the original nodes.

This tests do not check which node is deleted from the document, but in the
future, it should be tested after fixing bug 1735608 completely.

Depends on D150220

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/34672 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: