Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

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