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

Issue 2891723002: Do not create child node for Option constructor with no arguments/undefined text (Closed)

Created:
3 years, 7 months ago by Shanmuga Pandi
Modified:
3 years, 7 months ago
Reviewers:
tkent, fs, foolip
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not create child node for Option constructor with no arguments/undefined/empty text. Avoid Option constructor to append child, if its having no arguments/undefined/empty text. spec: https://html.spec.whatwg.org/#the-option-element BUG=723006 Review-Url: https://codereview.chromium.org/2891723002 Cr-Commit-Position: refs/heads/master@{#473523} Committed: https://chromium.googlesource.com/chromium/src/+/850a8677a6589a4c223c4a05793435e70109fd55

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased and added IsEmpty check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -16 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-option-element/option-element-constructor.html View 1 1 chunk +10 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-option-element/option-element-constructor-expected.txt View 1 1 chunk +0 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLOptionElement.cpp View 1 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
Shanmuga Pandi
PTAL!! Thanks
3 years, 7 months ago (2017-05-17 09:17:59 UTC) #2
foolip
https://codereview.chromium.org/2891723002/diff/1/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp File third_party/WebKit/Source/core/html/HTMLOptionElement.cpp (right): https://codereview.chromium.org/2891723002/diff/1/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp#newcode75 third_party/WebKit/Source/core/html/HTMLOptionElement.cpp:75: if (!data.IsNull()) The spec says "If text is not ...
3 years, 7 months ago (2017-05-17 11:23:12 UTC) #10
Shanmuga Pandi
https://codereview.chromium.org/2891723002/diff/1/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp File third_party/WebKit/Source/core/html/HTMLOptionElement.cpp (right): https://codereview.chromium.org/2891723002/diff/1/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp#newcode75 third_party/WebKit/Source/core/html/HTMLOptionElement.cpp:75: if (!data.IsNull()) On 2017/05/17 11:23:12, foolip wrote: > The ...
3 years, 7 months ago (2017-05-17 11:29:36 UTC) #11
Shanmuga Pandi
> 2. Use data.IsEmpty() here and in the same CL update the test to cover ...
3 years, 7 months ago (2017-05-18 05:47:58 UTC) #12
foolip
On 2017/05/18 05:47:58, Shanmuga Pandi wrote: > > 2. Use data.IsEmpty() here and in the ...
3 years, 7 months ago (2017-05-18 21:03:00 UTC) #13
tkent
The test was imported. Please rebase.
3 years, 7 months ago (2017-05-22 00:03:15 UTC) #14
Shanmuga Pandi
On 2017/05/22 00:03:15, tkent wrote: > The test was imported. Please rebase. Rebased and updated ...
3 years, 7 months ago (2017-05-22 05:58:35 UTC) #17
tkent
lgtm
3 years, 7 months ago (2017-05-22 06:06:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2891723002/20001
3 years, 7 months ago (2017-05-22 06:06:27 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 08:09:03 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/850a8677a6589a4c223c4a057934...

Powered by Google App Engine
This is Rietveld 408576698