Caret get/set support in contenteditable elements