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

Issue 569993002: <label> should support form association by parser (Closed)

Created:
6 years, 3 months ago by spartha
Modified:
6 years, 3 months ago
Reviewers:
tkent, keishi
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

As per spec and to be consistent with other browsers (Firefox & IE11), we should support form association by parser. BUG=336723 TEST=fast/dom/HTMLLabelElement/label-formAssociatedElement.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182217

Patch Set 1 #

Patch Set 2 : Rebase + TestCase #

Total comments: 6

Patch Set 3 : rebase #

Patch Set 4 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -12 lines) Patch
A LayoutTests/fast/dom/HTMLLabelElement/label-formAssociatedElement.html View 1 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/HTMLLabelElement/label-formAssociatedElement-expected.txt View 1 3 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/html/FormAssociatedElement.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/FormAssociatedElement.cpp View 1 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/html/HTMLLabelElement.h View 1 2 3 2 chunks +44 lines, -4 lines 0 comments Download
M Source/core/html/HTMLLabelElement.cpp View 1 2 3 5 chunks +26 lines, -5 lines 0 comments Download
M Source/core/html/HTMLObjectElement.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLTagNames.in View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
spartha
I did not get why <label> was not a FormAssociatedElement in the first place. This ...
6 years, 3 months ago (2014-09-15 20:25:26 UTC) #3
keishi
https://codereview.chromium.org/569993002/diff/40001/Source/core/html/HTMLLabelElement.cpp File Source/core/html/HTMLLabelElement.cpp (right): https://codereview.chromium.org/569993002/diff/40001/Source/core/html/HTMLLabelElement.cpp#newcode82 Source/core/html/HTMLLabelElement.cpp:82: return !fastGetAttribute(formAttr).isNull() ? FormAssociatedElement::findAssociatedForm(this) : FormAssociatedElement::form(); I think we ...
6 years, 3 months ago (2014-09-16 01:59:19 UTC) #4
spartha
Thanks for review. Patch updated, PTAL! https://codereview.chromium.org/569993002/diff/40001/Source/core/html/HTMLLabelElement.cpp File Source/core/html/HTMLLabelElement.cpp (right): https://codereview.chromium.org/569993002/diff/40001/Source/core/html/HTMLLabelElement.cpp#newcode82 Source/core/html/HTMLLabelElement.cpp:82: return !fastGetAttribute(formAttr).isNull() ? ...
6 years, 3 months ago (2014-09-17 11:02:18 UTC) #5
keishi
lgtm
6 years, 3 months ago (2014-09-18 02:30:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/569993002/80001
6 years, 3 months ago (2014-09-18 02:44:37 UTC) #8
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 03:52:54 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as 182217

Powered by Google App Engine
This is Rietveld 408576698