Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1369 closed defect (fixed)

FIX: dojo.html.isSelectionCollapsed needs more checks

Reported by: [email protected] Owned by: dylan
Priority: high Milestone:
Component: HTML Version: 0.3
Keywords: Cc: [email protected]
Blocked By: Blocking:


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: Gecko/20060731 Ubuntu/dapper-security Firefox/" for me:

return selection.isCollapsed
selection.toString() == "";


  • attila

Change History (4)

comment:1 Changed 15 years ago by guest

Cc: [email protected] added

comment:2 Changed 15 years ago by dylan

Milestone: 0.4
Owner: changed from Bryan Forbes to dylan
Status: newassigned
Version: 0.20.3

comment:3 Changed 15 years ago by dylan

Resolution: fixed
Status: assignedclosed

(In [5439]) better isSelectionCollapsed checking for firefox, fixes #1369

comment:4 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.