Case ce-0066 · Scenario scenario-disabled-attribute

disabled attribute does not disable contenteditable

OS: macOS Ubuntu 22.04 Device: Desktop or Laptop Any Browser: Safari 120.0 Keyboard: US Status: draft
disabled editing safari

Phenomenon

The disabled attribute, which disables form inputs, does not work on contenteditable regions in Safari. The contenteditable remains editable and interactive even when disabled is set.

Reproduction example

  1. Create a contenteditable div with disabled attribute.
  2. Try to focus and edit the content.
  3. Observe whether the element is disabled.

Observed behavior

  • In Safari on macOS, the disabled attribute does not disable contenteditable.
  • The element remains editable and focusable.
  • The attribute is ignored.

Expected behavior

  • The disabled attribute should disable contenteditable.
  • The element should not be editable or focusable when disabled.
  • Behavior should match standard input elements.

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: macOS Ubuntu 22.04
Device: Desktop or Laptop Any
Browser: Safari 120.0
Keyboard: US
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.