Make `HTMLEditor` aware of inserting text in `contenteditable=plaintext-only`
Categories
(Core :: DOM: Editor, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox133 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
At least, we need to add WPTs. We should make use similar behavior when typing multiple white-spaces.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
This patch makes HTMLEditor::HandleInsertText compute the editing host without
limiting in the <body> for consistency with the other edit action handlers
which we've changed at implementing contenteditable=plaintext-only.
Unfortunately, there are a lot of changes to pass the editing host to
EnsureCaretNotAfterInvisibleBRElement(), though.
Note that the tests trying to preserve the style in
contenteditable=plaintext-only fails on Chrome too due to <br> is put
outside the <b> or forgot the <b> after caret move. However, as you know,
contenteditable=plaintext-only does not allow to change text style even
for web app developers. Therefore, loosing the style only in some conditions
must be wrong. Therefore, I made the expectations.
Depends on D224186
Comment 4•1 year ago
|
||
| bugherder | ||
Comment 5•1 year ago
|
||
| bugherder | ||
Description
•