[Webkit-unassigned] [Bug 5241] Space and tab characters "sent" by an input method give totally different results than typing them directly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 19 17:52:47 PST 2011


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





--- Comment #30 from MORITA Hajime <morrita at google.com>  2011-01-19 17:52:46 PST ---
(In reply to comment #29)
> (From update of attachment 79240 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=79240&action=review
> 
> > Source/JavaScriptCore/wtf/text/WTFString.h:331
> > +    bool containsOnlyWhitespace() const { return m_impl ? m_impl->containsOnlyWhitespace() : false; }
> 
> So this function returns false for any string that contains a non-breaking space because containsOnlyWhitespace calls isASCIISpace and isASCIISpace returns false for 0xA0 for the obvious reason that 0xA0 isn't available in the ASCII encoding.
I realized that containsOnlyWhitespace() doesn't work.

What I'd like to discuss is your first feedback:
> > > How about containsOnlyWhitespace as in JavaScriptCore/wtf/text/StringImpl.h?
Could you clarify what the point here is ...?

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