Fixed incorrect selection on IE and FF after replacing editable.
Removed unncessary hack.
There may be an empty selection without anchorNode (e.g. in non-editable doc).
Fixed initial selection on IE7&8.
Simplified implementation.
IE9 also throws unspecified error when getting active element.
Prevent infinitive recursion on IEs.
Merge branch 't/10438' into major