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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Element/classlist-empty-string.html

Issue 1388903002: className should be allowed to be a whitespace-only string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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/LayoutTests/fast/dom/Element/classlist-empty-string-expected.txt » ('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 <html>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 debug("Check the classlist length attribute for empty strings");
6 var div = document.createElement('div');
7 div.className = ' ';
8 shouldBe("div.className.length", "3");
9
10 div.className = ' ';
11 shouldBe("div.className.length", "5");
12 </script>
13 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/Element/classlist-empty-string-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698