Skip to content

Latest commit

 

History

History
100 lines (94 loc) · 5.21 KB

BROWSERINCONSISTENCIES.md

File metadata and controls

100 lines (94 loc) · 5.21 KB

List of contenteditable Browser Inconsistencies

Playground: http://jsbin.com/iwEWUXo/2/edit?js,console,output

document.execCommand commands

Document.queryCommandState

Element.focus

  • Firefox: Giving focus to a contenteditable will place the caret outside of any block elements. Chrome behaves correctly by placing the caret at the earliest point possible inside the first block element: http://jsbin.com/eLoFOku/1/edit?js,console,output

Events

Other

Range.commonAncestorContainer