Add tentative WPT for checking the handling of `delete` in elements outside `<body>`
Categories
(Core :: DOM: Editor, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
+++ 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>
.
Assignee | ||
Comment 1•2 years ago
|
||
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
Description
•