Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/attribute-selector-case-insensitive-ascii.html

Issue 1499933003: Use ASCII case-insensitive matching for attribute selectors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WTF -> StringTest Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>ASCII case-insensitive attribute selector matching</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <div id="element1" attr-exact="f&#x130;x"></div>
6 <div id="element2" attr-exact="a&#x308;pple"></div>
7 <div id="element3" attr-list="apelsin a&#x308;pple citron"></div>
8 <div id="element4" attr-hyphen="a&#x308;ppel-cider"></div>
9 <div id="element5" attr-begin="a&#x308;ppelcider"></div>
10 <div id="element6" attr-end="gifta&#x308;pple"></div>
11 <div id="element7" attr-contain="glasa&#x308;ppelkorg"></div>
12 <script>
13 function matchingId(selector) {
14 return (document.querySelector(selector) || { id: '' }).id;
15 }
16 test(function() {
17 assert_equals(matchingId('div[attr-exact="f\u0130x"]'), 'element1');
18 assert_equals(matchingId('div[attr-exact="FIX" i]'), '');
19 assert_equals(matchingId('div[attr-exact="A\u0308pple" i]'), 'element2');
20 assert_equals(matchingId('div[attr-list~="A\u0308pple" i]'), 'element3');
21 assert_equals(matchingId('div[attr-hyphen|="A\u0308ppel" i]'), 'element4');
22 assert_equals(matchingId('div[attr-begin^="A\u0308ppel" i]'), 'element5');
23 assert_equals(matchingId('div[attr-end$="A\u0308pple" i]'), 'element6');
24 assert_equals(matchingId('div[attr-contain*="A\u0308ppel" i]'), 'element7');
25 });
26 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698