Closed Bug 1951007 Opened 11 days ago Closed 12 hours ago

`document.queryCommandEnabled` returns `true` for style editing commands when the editing host is `plaintext-only`

Categories

(Core :: DOM: Editor, defect)

defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Blocks 1 open bug)

Details

(Keywords: parity-chrome)

Attachments

(1 file)

The style editing commands should be disabled in
contenteditable="plaintext-only". Currently, we return false from
execCommand, but we still claim that the commands are enabled for
queryCommandEnabled.

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/d1065c17a700 Make style editing commands check whether the editing host is `contenteditable="plaintext-only"` to consider whether it's enabled r=m_kato
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/51225 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 12 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: