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

Issue 2841473002: Implement HTMLMenuItemElement.label (Closed)

Created:
3 years, 8 months ago by yuzuchan
Modified:
3 years, 8 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement HTMLMenuItemElement.label This CL implements HTMLMenuItemElement.label so that the behavior matches the current spec. The label of a menuitem element is the value of the label content attribute, if there is one and its value is not the empty string, or, otherwise, the result of stripping and collapsing ASCII whitespace from the child text content of the menuitem element. https://html.spec.whatwg.org/multipage/forms.html#dom-menuitem-label https://html.spec.whatwg.org/multipage/forms.html#concept-menuitem-label BUG=713431 Review-Url: https://codereview.chromium.org/2841473002 Cr-Commit-Position: refs/heads/master@{#467487} Committed: https://chromium.googlesource.com/chromium/src/+/ae4d8f00071215f9dfe05e1d762f34833c0eec9b

Patch Set 1 #

Patch Set 2 : Add layout test description #

Patch Set 3 : Fix syntax error #

Total comments: 15

Patch Set 4 : Reflect review comments #

Patch Set 5 : Reflect review comments #

Total comments: 10

Patch Set 6 : Reflect review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMenuItemElement.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp View 1 2 3 4 5 2 chunks +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMenuItemElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/CustomContextMenuProvider.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (25 generated)
yuzuchan
PTAL :) This is how I feel about this patch: http://i.imgur.com/8jqxDoB.gif
3 years, 8 months ago (2017-04-25 09:33:17 UTC) #13
tkent
https://codereview.chromium.org/2841473002/diff/40001/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp File third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp (right): https://codereview.chromium.org/2841473002/diff/40001/third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp#newcode63 third_party/WebKit/Source/core/html/HTMLMenuItemElement.cpp:63: if (!label.IsNull() && label != "") if (!label.IsEmpty()) is ...
3 years, 8 months ago (2017-04-25 09:56:34 UTC) #14
tkent
https://codereview.chromium.org/2841473002/diff/40001/third_party/WebKit/LayoutTests/html/menu_menuitem/menuitem-label.html File third_party/WebKit/LayoutTests/html/menu_menuitem/menuitem-label.html (right): https://codereview.chromium.org/2841473002/diff/40001/third_party/WebKit/LayoutTests/html/menu_menuitem/menuitem-label.html#newcode1 third_party/WebKit/LayoutTests/html/menu_menuitem/menuitem-label.html:1: <!DOCTYPE html> This is a conformance test without any ...
3 years, 8 months ago (2017-04-25 23:25:00 UTC) #15
yuzuchan
Thanks for the review! PTAL again :) This is how I feel about this patch: ...
3 years, 8 months ago (2017-04-26 08:54:57 UTC) #22
tkent
https://codereview.chromium.org/2841473002/diff/80001/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html File third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html (right): https://codereview.chromium.org/2841473002/diff/80001/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html#newcode2 third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html:2: <script src='../../../../../../resources/testharness.js'></script> Please use absolute link in external/wpt/. <script ...
3 years, 8 months ago (2017-04-26 08:59:59 UTC) #23
yuzuchan
Thanks for the review! PTAL again :) This is how I feel about this patch: ...
3 years, 8 months ago (2017-04-26 10:28:30 UTC) #24
tkent
lgtm https://codereview.chromium.org/2841473002/diff/80001/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html File third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html (right): https://codereview.chromium.org/2841473002/diff/80001/third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html#newcode2 third_party/WebKit/LayoutTests/external/wpt/html/semantics/interactive-elements/the-menu-element/menuitem-label.html:2: <script src='../../../../../../resources/testharness.js'></script> BTW, here is the document about ...
3 years, 8 months ago (2017-04-26 22:32:30 UTC) #30
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/2841473002/100001
3 years, 8 months ago (2017-04-26 22:33:57 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 22:41:02 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ae4d8f00071215f9dfe05e1d762f...

Powered by Google App Engine
This is Rietveld 408576698