RESOLVED FIXED 26774
window.getSelection().toString() breaks soft hyphen ­
https://bugs.webkit.org/show_bug.cgi?id=26774
Summary window.getSelection().toString() breaks soft hyphen ­
Mathias Nater
Reported 2009-06-27 15:02:22 PDT
Soft hyphens in selected text are replaced by space (with charCode 32 ?!?) when the selection is converted to a string in javascript: var t1 = window.getSelection().toString();
Attachments
testcase (881 bytes, text/html)
2009-06-27 15:06 PDT, Mathias Nater
no flags
Mathias Nater
Comment 1 2009-06-27 15:06:14 PDT
Created attachment 31979 [details] testcase The atachment shows the problem: Select the first line, then click go. An alert will show up. t1 is the selected text, t2 is the text retrieved by document.getElementById(...). Results differ
Alexey Proskuryakov
Comment 2 2009-06-30 02:33:30 PDT
See also: bug 11154 (most likely, it has the same underlying reason).
mitz
Comment 3 2010-09-28 12:41:13 PDT
This was fixed along with Bug 11154.
Note You need to log in before you can comment on or make changes to this bug.