setSelectionRange problems under IE
Brought to you by:
cdolivet
Hi,
I think there is a bug with setSelectionRange under IE: it gets the highlight wrong because somehow, in IE newlines are 2 characters '\r\n' instead of just '\n'.
Example
Given the following input:
abcde
abcde
and trying to highlight "bcd" in the 2nd line I'd call setSelectionRange(7,10). Under Firefox (both Linux and Windows that results in (highlighted area in uppercase)
abcde
aBCDe
but in IE I get
abcde
ABCde
Best,
Norbert
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I have a setSelectionRange error in FF 3.6.10 andf IE 8, but chrome works fine!