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

Issue 157013006: Update HTMLFormControlsCollection's named getter to behave according to spec (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 10 months ago
CC:
blink-reviews, kojih, arv+blink, jsbell+bindings_chromium.org, sof, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

Update HTMLFormControlsCollection's named getter to behave according to spec Update HTMLFormControlsCollection's named getter to behave according to spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#htmlformcontrolscollection-0 1. namedItem() should be marked as named getter in IDL as per the spec. This also means we can get rid of the anonymous named getter in our IDL. 2. The named getter should be enumerable as per Web IDL, meaning that elements id / names should be enumerated. The supported property names are spec'd at: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#htmlformcontrolscollection-0 Firefox 26 and IE11 both show the names while enumerating. However, IE11 does not show the ids when enumerating, which is incorrect. 3. The argument to namedItem() named getter should be mandatory. This is consistent with the spec, Firefox 26 and IE11. This CL also gets rid of the custom bindings code needed for the named getter by improving support for union types in the bindings generator. R=haraken, arv, tkent BUG=341269 TEST=fast/dom/htmlformcontrolscollection-enumerated-properties.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166688

Patch Set 1 #

Patch Set 2 : Simplify bindings test #

Patch Set 3 : Rebaseline inspector test #

Total comments: 3

Patch Set 4 : Remove legacycaller #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -103 lines) Patch
A LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties.html View 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/htmlformcontrolscollection-enumerated-properties-expected.txt View 1 chunk +13 lines, -0 lines 0 comments Download
M LayoutTests/inspector/console/console-format-collections-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/bindings.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 7 chunks +30 lines, -17 lines 0 comments Download
M Source/bindings/tests/idls/TestInterface.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 4 chunks +37 lines, -1 line 0 comments Download
D Source/bindings/v8/custom/V8HTMLFormControlsCollectionCustom.cpp View 1 chunk +0 lines, -71 lines 0 comments Download
M Source/core/html/HTMLCollection.h View 2 chunks +1 line, -1 line 0 comments Download
M Source/core/html/HTMLCollection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFormControlsCollection.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/html/HTMLFormControlsCollection.cpp View 3 chunks +35 lines, -6 lines 0 comments Download
M Source/core/html/HTMLFormControlsCollection.idl View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Inactive
6 years, 10 months ago (2014-02-07 01:34:34 UTC) #1
Nils Barth (inactive)
https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl File Source/core/html/HTMLFormControlsCollection.idl (right): https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl#newcode27 Source/core/html/HTMLFormControlsCollection.idl:27: [ImplementedAs=namedGetter] legacycaller getter (RadioNodeList or Element) namedItem(DOMString name); // ...
6 years, 10 months ago (2014-02-07 01:40:42 UTC) #2
Inactive
https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl File Source/core/html/HTMLFormControlsCollection.idl (right): https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl#newcode27 Source/core/html/HTMLFormControlsCollection.idl:27: [ImplementedAs=namedGetter] legacycaller getter (RadioNodeList or Element) namedItem(DOMString name); // ...
6 years, 10 months ago (2014-02-07 01:52:38 UTC) #3
Nils Barth (inactive)
https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl File Source/core/html/HTMLFormControlsCollection.idl (right): https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl#newcode27 Source/core/html/HTMLFormControlsCollection.idl:27: [ImplementedAs=namedGetter] legacycaller getter (RadioNodeList or Element) namedItem(DOMString name); // ...
6 years, 10 months ago (2014-02-07 01:54:55 UTC) #4
Inactive
On 2014/02/07 01:54:55, Nils Barth wrote: > https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl > File Source/core/html/HTMLFormControlsCollection.idl (right): > > https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl#newcode27 ...
6 years, 10 months ago (2014-02-07 02:09:40 UTC) #5
Nils Barth (inactive)
On 2014/02/07 02:09:40, Chris Dumez wrote: > I prefer to remove it at this point. ...
6 years, 10 months ago (2014-02-07 02:11:41 UTC) #6
Inactive
On 2014/02/07 01:54:55, Nils Barth wrote: > https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl > File Source/core/html/HTMLFormControlsCollection.idl (right): > > https://codereview.chromium.org/157013006/diff/80001/Source/core/html/HTMLFormControlsCollection.idl#newcode27 ...
6 years, 10 months ago (2014-02-07 02:14:31 UTC) #7
haraken
LGTM.
6 years, 10 months ago (2014-02-07 02:17:37 UTC) #8
Nils Barth (inactive)
On 2014/02/07 01:54:55, Nils Barth wrote: > I'd rather not include undocumented nops, since it ...
6 years, 10 months ago (2014-02-07 02:19:10 UTC) #9
arv (Not doing code reviews)
LGTM
6 years, 10 months ago (2014-02-07 02:59:02 UTC) #10
tkent
public API change lgtm.
6 years, 10 months ago (2014-02-07 04:12:56 UTC) #11
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-07 04:26:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/157013006/80002
6 years, 10 months ago (2014-02-07 04:26:44 UTC) #13
commit-bot: I haz the power
Change committed as 166688
6 years, 10 months ago (2014-02-07 07:47:22 UTC) #14
Nils Barth (inactive)
6 years, 10 months ago (2014-02-10 06:41:31 UTC) #15
Message was sent while issue was closed.
Python side at:
IDL compiler: sync Python to r166688 (and clean up special operations+union
code)
https://codereview.chromium.org/158663002/

Thanks Chris!

Powered by Google App Engine
This is Rietveld 408576698