Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1369 closed defect (fixed)

FIX: dojo.html.isSelectionCollapsed needs more checks

Reported by: attila.lendvai@… Owned by: dylan
Priority: high Milestone:
Component: HTML Version: 0.3
Keywords: Cc: attila.lendvai@…
Blocked By: Blocking:

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
selection.toString() == "";

hth,

  • attila

Change History (4)

comment:1 Changed 13 years ago by guest

Cc: attila.lendvai@… added

comment:2 Changed 13 years ago by dylan

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

comment:3 Changed 13 years ago by dylan

Resolution: fixed
Status: assignedclosed

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

comment:4 Changed 13 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.