FIX: dojo.html.isSelectionCollapsed needs more checks
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,
Change History (4)
Milestone: |
→ 0.4
|
Owner: |
changed from Bryan Forbes to dylan
|
Status: |
new →
assigned
|
Version: |
0.2 →
0.3
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
(In [5439]) better isSelectionCollapsed checking for firefox, fixes #1369