Ticket #1510 (closed defect: duplicate)
IE BUG in _getFirstAncestor() when selection empty
| Reported by: | guest | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.96 |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
