[Webkit-unassigned] [Bug 112015] [EFL] accessibility/textarea-line-for-index.html is failing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 4 07:16:23 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=112015





--- Comment #7 from Mario Sanchez Prada <mario at webkit.org>  2013-11-04 07:15:09 PST ---
(In reply to comment #6)
> [...]
> Let's consider a test string of "\n". Wouldn't a valid index range in this
> case be [0,1], with 0 corresponding to a caret placed just before the newline
> and 1 right after it, resulting in returned line numbers of 0 and 1
> respectively? If so, shouldn't the index validity check accept ranges up to
> and including the length of the input string?

I see. The thing that confuses me a bit is that in this case the 'index' parameter actually acts more like a 'count'/'len' than as a 'index'/'position' in the text.

>From that point of view, then obviously the text length is a valid value for that, and so my previous comment is non-sense. Sorry about that and thanks for the clarification.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list