Opened 12 years ago

Closed 12 years ago

#1281 closed defect (fixed)

selectNodeContents is borken in IE when the node is a text node

Reported by: douglas Owned by:
Priority: normal Milestone: 0.96
Component: Browsers_InternetExplorer Version: trunk
Severity: normal Keywords: ie


Passing a text node to selectNodeContents causes an exception in Internet Explorer. This is because moveToElementText, the function behind the existing algorithm, doesn't work with text nodes.

Change History (1)

comment:1 Changed 12 years ago by douglas

  • Resolution set to fixed
  • Status changed from new to closed

r1041 Fixes this by using the parentNode as a starting point and adjusting the selection from either side until it only contains the text node.

Note: See TracTickets for help on using tickets.