trident-pre-7 don't save `_doc.caretPos` if no selection.