Phenomenon
The readonly attribute, which should prevent editing on form inputs, does not work on contenteditable regions in Firefox. Users can still edit the content even when readonly is set.
Reproduction example
- Create a contenteditable div with
readonlyattribute. - Try to edit the content.
- Observe whether editing is prevented.
Observed behavior
- In Firefox on Linux, the
readonlyattribute does not prevent editing. - Users can still modify content.
- The attribute is ignored.
Expected behavior
- The
readonlyattribute should prevent editing on contenteditable. - Content should be view-only when
readonlyis set. - Behavior should match standard input elements.