Compare :lang value case-insensitive in ASCII range
commitc4b6de61ff1ddf85fa306bc4b581b67079ba1369
authorrob.buis@samsung.com <rob.buis@samsung.com>
Thu, 14 May 2015 00:56:34 +0000 (14 00:56 +0000)
committerrob.buis@samsung.com <rob.buis@samsung.com>
Thu, 14 May 2015 00:56:34 +0000 (14 00:56 +0000)
treeb482821cf891a81e5fa38f9e8da4949945a8de25
parent73f284903f5a6db29e2199e6645a08dc83594106
Compare :lang value case-insensitive in ASCII range

Compare :lang value case-insensitive in ASCII range, relevant
spec information [1]:
"All CSS syntax is case-insensitive within the ASCII range (i.e.,
[a-z] and [A-Z] are equivalent), except for parts that are not
under the control of CSS."

Add methods to be able to do a comparison that is case-insensitive
within the ASCII range to wtf.

Test taken from:
https://test.csswg.org/source/css21/syntax/case-sensitive-004.xht

Behavior matches Firefox.

[1] http://www.w3.org/TR/CSS21/syndata.html#characters

Review URL: https://codereview.chromium.org/1129313003

git-svn-id: svn://svn.chromium.org/blink/trunk@195333 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/LayoutTests/fast/css/case-sensitive-004-expected.xhtml [new file with mode: 0644]
third_party/WebKit/LayoutTests/fast/css/case-sensitive-004.xhtml [new file with mode: 0644]
third_party/WebKit/Source/core/css/SelectorChecker.cpp
third_party/WebKit/Source/wtf/text/StringImpl.h
third_party/WebKit/Source/wtf/text/WTFStringTest.cpp