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

Issue 1388903002: className should be allowed to be a whitespace-only string (Closed)

Created:
5 years, 2 months ago by tanay.c
Modified:
5 years, 2 months ago
Reviewers:
tkent, pdr., philipj_slow
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Classnames containing only whitespaces should be allowed. Whitespace strings are treated as empty strings in current implementation which is incorrect. BUG=526289 Committed: https://crrev.com/16643355966bb0e8f6b42516dacff90bbf80d3f8 Cr-Commit-Position: refs/heads/master@{#354473}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -8 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/Element/classlist-empty-string.html View 1 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/Element/classlist-empty-string-expected.txt View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 6 chunks +19 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
tanay.c
PTAL
5 years, 2 months ago (2015-10-06 07:11:13 UTC) #2
tkent
Please add a test. https://codereview.chromium.org/1388903002/diff/1/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/1388903002/diff/1/third_party/WebKit/Source/core/dom/Element.cpp#newcode1243 third_party/WebKit/Source/core/dom/Element.cpp:1243: return i <= length; It ...
5 years, 2 months ago (2015-10-06 07:19:02 UTC) #3
tanay.c
On 2015/10/06 07:19:02, tkent wrote: > Please add a test. > > https://codereview.chromium.org/1388903002/diff/1/third_party/WebKit/Source/core/dom/Element.cpp > File ...
5 years, 2 months ago (2015-10-06 09:56:14 UTC) #4
tkent
On 2015/10/06 at 09:56:14, tanay.c wrote: > On 2015/10/06 07:19:02, tkent wrote: > > Please ...
5 years, 2 months ago (2015-10-07 00:25:51 UTC) #5
tanay.c
On 2015/10/07 00:25:51, tkent wrote: > On 2015/10/06 at 09:56:14, tanay.c wrote: > > On ...
5 years, 2 months ago (2015-10-08 12:04:53 UTC) #6
tanay.c
On 2015/10/08 12:04:53, tanay.c wrote: > On 2015/10/07 00:25:51, tkent wrote: > > On 2015/10/06 ...
5 years, 2 months ago (2015-10-08 12:07:35 UTC) #7
tkent
https://codereview.chromium.org/1388903002/diff/60001/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/1388903002/diff/60001/third_party/WebKit/Source/core/dom/Element.cpp#newcode1232 third_party/WebKit/Source/core/dom/Element.cpp:1232: static inline bool classStringHasClassName(const CharacterType* characters, unsigned length, bool& ...
5 years, 2 months ago (2015-10-08 23:20:12 UTC) #8
tanay.c
On 2015/10/08 23:20:12, tkent wrote: > https://codereview.chromium.org/1388903002/diff/60001/third_party/WebKit/Source/core/dom/Element.cpp > File third_party/WebKit/Source/core/dom/Element.cpp (right): > > https://codereview.chromium.org/1388903002/diff/60001/third_party/WebKit/Source/core/dom/Element.cpp#newcode1232 > ...
5 years, 2 months ago (2015-10-16 05:30:47 UTC) #9
tkent
Almost ok. https://codereview.chromium.org/1388903002/diff/80001/third_party/WebKit/Source/core/dom/Element.h File third_party/WebKit/Source/core/dom/Element.h (right): https://codereview.chromium.org/1388903002/diff/80001/third_party/WebKit/Source/core/dom/Element.h#newcode89 third_party/WebKit/Source/core/dom/Element.h:89: enum ClassStringContent { Please use |enum class| ...
5 years, 2 months ago (2015-10-16 05:40:32 UTC) #10
tanay.c
PTAL. https://codereview.chromium.org/1388903002/diff/80001/third_party/WebKit/Source/core/dom/Element.h File third_party/WebKit/Source/core/dom/Element.h (right): https://codereview.chromium.org/1388903002/diff/80001/third_party/WebKit/Source/core/dom/Element.h#newcode89 third_party/WebKit/Source/core/dom/Element.h:89: enum ClassStringContent { On 2015/10/16 05:40:32, tkent wrote: ...
5 years, 2 months ago (2015-10-16 07:17:36 UTC) #11
tkent
lgtm. Thank you for fixing this.
5 years, 2 months ago (2015-10-16 07:18:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1388903002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1388903002/140001
5 years, 2 months ago (2015-10-16 07:19:02 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 2 months ago (2015-10-16 08:21:23 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 08:22:43 UTC) #16
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/16643355966bb0e8f6b42516dacff90bbf80d3f8
Cr-Commit-Position: refs/heads/master@{#354473}

Powered by Google App Engine
This is Rietveld 408576698