Ticket #1369 (closed defect: fixed)

Opened 2 years ago

Last modified 18 months ago

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

hth,

- attila

Change History

Changed 2 years ago by guest

  • cc attila.lendvai@… added

Changed 2 years ago by dylan

  • owner changed from BryanForbes to dylan
  • status changed from new to assigned
  • version changed from 0.2 to 0.3
  • milestone set to 0.4

Changed 2 years ago by dylan

  • status changed from assigned to closed
  • resolution set to fixed

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

Changed 18 months ago by anonymous

  • milestone deleted

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.