IE BUG in _getFirstAncestor() when selection empty
|Reported by:||guest||Owned by:||gogo|
This is IE only. Let's say you have code like this.
var selection = this.editor.getSelection(); this.editor._getFirstAncestor(selection,['span']);
If the selection is empty, I mean you just clicked into the document, _getFirstAncestor() will return null on IE8. Even though it is surrounded by <span>. Firefox behaves right and returns the ancestor node.
getSelection() seems to be ok as it returns a selection object even in IE.