Closed Bug 1820187 Opened 2 years ago Closed 2 years ago

Lacking support for `contenteditable="plaintext-only"`

Categories

(Core :: DOM: Editor, defect)

Firefox 112
defect

Tracking

()

RESOLVED DUPLICATE of bug 1291467

People

(Reporter: brandon, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Steps to reproduce:

Use this snippet:

<div contenteditable="plaintext-only"></div>

Actual results:

Type '"plaintext-only"' is not assignable to type 'Booleanish | "inherit" | null | undefined'. ts(2322)

☝🏼 this only applies to Firefox. All other browsers support this feature.

caniuse: https://caniuse.com/mdn-html_global_attributes_contenteditable_plaintext-only

Expected results:

Marked as a valid value and contents tracked only as plain text

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Editor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Editor
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.