[Webkit-unassigned] [Bug 29292] [HTML5][Forms] Support for <textarea maxlength=N>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 18 14:28:16 PDT 2009


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





--- Comment #11 from Darin Adler <darin at apple.com>  2009-09-18 14:28:16 PDT ---
(In reply to comment #10)
> Suppose that the string is "\ud800\udc00", of which length() is 2 and has 1
> grapheme.  numCharactersInGraphmeClusters(1) with this string should return 2. 
> If we specified min(length(), nmGraphemeClusters) to characerBreakIterator(),
> the result would be 1.

But the whole point is that when the iterator can't be created we have to
assume that each character is a separate grapheme cluster because we don’t know
any better.

Suppose that the string is "ab". numCharactersInGraphemeClusters(1) should
return 1, not 2. If we specify length(), the result would be 2.

Obviously we can’t handle things correctly without the character iterator, but
it seems clear that treating the entire string as one giant grapheme cluster is
not the way to go. And that’s what returning length() does.

-- 
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