Browser compatibility

Overview of contenteditable support and behavior differences across browsers and operating systems.

Browser support overview

The contenteditable attribute is widely supported, but behavior varies significantly across browsers. This table shows the number of documented cases per browser and OS combination.

Browser Android Any Linux Windows iOS macOS Total
Chrome
2
5
16
14
37
Edge
10
10
Firefox
3
10
13
Safari
11
24
35

Known differences

Safari

  • Does not support the beforeinput event
  • May insert double line breaks when pressing Enter
  • Formatting persistence issues (bold, italic, etc.)

Chrome

  • Shows deprecation warnings for execCommand
  • IME composition behavior differs from Safari
  • Better support for beforeinput event

Firefox

  • Different event order for IME composition
  • Caret positioning issues after paste
  • Selection behavior differences

Edge

  • Based on Chromium, but may have Edge-specific behaviors
  • Input event duplication issues

Related resources