Closed
Bug 1919927
Opened 1 year ago
Closed 1 year ago
Implement `contenteditable=plaintext-only` outside the editor module
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
132 Branch
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(1 file)
First, we need a pref to enable it and new (optional) handler of contenteditable attribute changes under dom/.
| Assignee | ||
Comment 1•1 year ago
|
||
It requires a lot of changes in the editor module, and the layout module may
need read-write-plaintext-only and user-modify: read-write-plaintext-only.
When we work on the modules, we need the basic support under dom/. This
patch adds plaintext-only support only when the new pref is enabled.
Once the pref is enabled, the following failures will be fixed:
- https://searchfox.org/mozilla-central/rev/f2c181a7ab3bfea4d2266521e6eac713630479b3/testing/web-platform/meta/html/editing/editing-0/contenteditable/contenteditable-enumerated-ascii-case-insensitive.html.ini#4-5,7-8,10-11,13-14
- https://searchfox.org/mozilla-central/rev/f2c181a7ab3bfea4d2266521e6eac713630479b3/testing/web-platform/meta/html/editing/editing-0/contenteditable/user-interaction-editing-contenteditable.html.ini#4-5,7-8
FYI: Element::IsContentEditablePlainTextOnly() is useful for HTMLEditor
to check whether active editing host is so or not. Therefore, I'd like to
add it even though there is no user of it.
Updated•1 year ago
|
Attachment #9426062 -
Attachment description: Bug 1919927 - Implement `contenteditable="plaintext-only" in the DOM module r=smaug! → Bug 1919927 - Implement `contenteditable="plaintext-only"` in the DOM module r=smaug!
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/0f470e1a67af
Implement `contenteditable="plaintext-only"` in the DOM module r=smaug
Comment 3•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox132:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•