[Webkit-unassigned] [Bug 6029] New: plainText() returns a partial result when the node contains RTL text
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Sat Dec 10 03:14:41 PST 2005
http://bugzilla.opendarwin.org/show_bug.cgi?id=6029
Summary: plainText() returns a partial result when the node
contains RTL text
Product: WebKit
Version: 412+
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: opendarwin.org at mitzpettel.com
Summary: Copying a selection to the clipboard or calling innerText on a node results in only part of the
expected text being copied or returned in certain cases if the node contains RTL text.
To reproduce: open the attached testcase in Safari. Select the words "select and copy this sentence",
choose Edit > Copy and then examine the clipboard contents.
Result: only "select " is copied to the clipboard.
The testcase also contains an example of how innerText returns only the text up to "select ".
Analysis: plainText() fails due to a bug in TextIterator::handleTextBox(), where the comment says
"Determine what the next text box will be, but don't advance yet", in the RTL case it does advance.
Combined with the sequence of newline and space, this causes the iterator to reach the end
prematurely.
--
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list