Skip to content

Latest commit

 

History

History
114 lines (104 loc) · 5.75 KB

BROWSERINCONSISTENCIES.md

File metadata and controls

114 lines (104 loc) · 5.75 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

Selection.getRangeAt

Selection.isCollapsed