Closed Bug 1777905 Opened 2 years ago Closed 2 years ago

Add tentative WPT for checking the handling of `delete` in elements outside `<body>`

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1777904 +++

Similar to bug 1777904, we should have a rough design to avoid deleting <style>, <title>, etc when editable elements are outside the <body>.

Deleting or joining some elements may affect various things to entire the
document, e.g., deleting <style> element changes various element visual.
Additionally, this may not be safe, may cause apps unstable, may create edge
cases. Therefore, even if they are different from traditional behavior of
browsers, the behavior should be changed.

However, for the normal elements which usually appear in <body> and visible,
we should allow builtin editor join the element with another element even
outside <body> element. This avoids to break the web since some browsers
behave so.

Depends on D152381

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/7e38dbf3b1c5 Add tentative WPT to check if builtin editor does not join nor delete special elements which are typically invisible r=m_kato
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/35219 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Upstream PR merged by moz-wptsync-bot
No longer depends on: 1777660
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: