[Editing] Inline and Text Control elements should stay open without
placeholder
The logic for determining whether the root element remains open has
been modified. Previously, there was special handling for text
nodes, which has now been removed. A new check has been introduced to
verify if the root editable element is an inline or text control. If
it is not, a placeholder will be added.
The following tests and expectations have been updated as they were
not expecting
with the current baseline. After this change,
these tests will now start to expect the
tag.
Currently, Firefox is adding the
tag, which is not
the case with Chrome. However, post this change, the same behavior
will be observed in Chrome as well.
The tests below are under
third_party/blink/web_tests/third_party/blink/web_tests/editing/
deleting/5847330-2-expected.txt
deleting/delete_select_all.html
deleting/delete-across-editable-content-boundaries-1-expected.txt
deleting/delete-and-cleanup.html
deleting/delete-and-cleanup-expected.txt
execCommand/delete-non-editable-range-crash.html
commands/apply_style_command_test.cc
commands/delete_selection_command_test.cc
commands/typing_command_test.cc
The tests below are under
third_party/blink/web_tests/third_party/blink/web_tests/fast/events/
event-input-contentEditable-expected.txt
inputevents/inputevent-yank.html
key-events-in-editable-flexbox.html
key-events-in-editable-flexbox-expected.txt
key-events-in-editable-gridbox.html
key-events-in-editable-gridbox-expected.txt
script-tests/event-input-contentEditable.js
The test below is under
third_party/blink/web_tests/dom/mutation-event-tests/
editing/selection/crash-on-drag-with-mutation-events-expected.txt
The test below is under
third_party/blink/web_tests/wpt_internal/
css/css-ui/webkit-user-modify-all-revert.html
Bug: 40702380
Change-Id: I3418b167b759d136fbc33b3593b5eb1698b14af6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5787236
Reviewed-by: Siye Liu siliu@microsoft.com
Reviewed-by: Kent Tamura tkent@chromium.org
Commit-Queue: Tanu Jain tanujain@microsoft.com
Reviewed-by: Akihiro Ota akihiroota@chromium.org
Cr-Commit-Position: refs/heads/main@{#1354046}