Ticket #1369 (closed defect: fixed)
FIX: dojo.html.isSelectionCollapsed needs more checks
| Reported by: | attila.lendvai@… | Owned by: | dylan |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | HTML | Version: | 0.3 |
| Severity: | normal | Keywords: | |
| Cc: | attila.lendvai@… |
Description
dojo.html.isSelectionCollapsed in mozilla only checks for selection.isCollapsed but mozilla has a tendency to return true for empty table cells (and possibly other elements). adding the condition below made it work consistently with "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060731 Ubuntu/dapper-security Firefox/1.5.0.5" for me:
return selection.isCollapsed
hth,
- attila
Change History
Note: See
TracTickets for help on using
tickets.