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

Issue 2334223005: 2nd arg of document.createElement should be an object (Closed)

Created:
4 years, 3 months ago by Anton Obzhirov
Modified:
4 years, 1 month ago
CC:
asvitkine+watch_chromium.org, bashi, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, dominicc+watchlist_chromium.org, eae+blinkwatch, rwlbuis, sof, webcomponents-bugzilla_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

2nd arg of document.createElement should be an object This patch adds a dictionary as a second argument for document.createElement. See https://dom.spec.whatwg.org/#dom-document-createelement. BUG=637353 Committed: https://crrev.com/fc17d505758c284f99624ac69b6e2fb72ea7b623 Cr-Commit-Position: refs/heads/master@{#428111}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Next iteration, added new test and slightly different approach. #

Total comments: 1

Patch Set 3 : Updated after review + added warning in the tests expectations." #

Patch Set 4 : Remove deprecation warning for now. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -36 lines) Patch
A third_party/WebKit/LayoutTests/fast/dom/custom/create-element-second-arg.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/BUILD.gn View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V0CustomElementConstructorBuilder.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 6 chunks +41 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.idl View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A + third_party/WebKit/Source/core/dom/ElementCreationOptions.idl View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TreeScopeTest.cpp View 1 2 3 6 chunks +18 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorterTest.cpp View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 40 (20 generated)
dominicc (has gone to gerrit)
Thanks for working on this! This is shaping up very nicely. Could you update the ...
4 years, 3 months ago (2016-09-15 01:19:24 UTC) #3
Yuki
+cc: bashi@ https://codereview.chromium.org/2334223005/diff/1/third_party/WebKit/Source/core/dom/Document.idl File third_party/WebKit/Source/core/dom/Document.idl (right): https://codereview.chromium.org/2334223005/diff/1/third_party/WebKit/Source/core/dom/Document.idl#newcode178 third_party/WebKit/Source/core/dom/Document.idl:178: [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createElement(DOMString localName, (ElementCreationOptions ...
4 years, 3 months ago (2016-09-15 08:01:39 UTC) #5
Anton Obzhirov
Hi, thanks for checking, will address all the issues. https://codereview.chromium.org/2334223005/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2334223005/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode684 third_party/WebKit/Source/core/dom/Document.cpp:684: ...
4 years, 3 months ago (2016-09-15 09:25:20 UTC) #6
Anton Obzhirov
On 2016/09/15 09:25:20, Anton Obzhirov wrote: > Hi, thanks for checking, will address all the ...
4 years, 3 months ago (2016-09-16 19:10:59 UTC) #7
Anton Obzhirov
On 2016/09/16 19:10:59, Anton Obzhirov wrote: > On 2016/09/15 09:25:20, Anton Obzhirov wrote: > > ...
4 years, 3 months ago (2016-09-19 20:20:44 UTC) #8
Anton Obzhirov
4 years, 3 months ago (2016-09-21 15:00:57 UTC) #9
Anton Obzhirov
https://codereview.chromium.org/2334223005/diff/1/third_party/WebKit/Source/core/dom/Document.idl File third_party/WebKit/Source/core/dom/Document.idl (right): https://codereview.chromium.org/2334223005/diff/1/third_party/WebKit/Source/core/dom/Document.idl#newcode178 third_party/WebKit/Source/core/dom/Document.idl:178: [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createElement(DOMString localName, (ElementCreationOptions or DOMString) ...
4 years, 3 months ago (2016-09-21 15:05:12 UTC) #10
Anton Obzhirov
Hi guys, plz check the new patch. I've changed the approach to support toString case ...
4 years, 3 months ago (2016-09-21 18:16:13 UTC) #11
dominicc (has gone to gerrit)
This LGTM. Thanks for working on this! There's one more thing I want to ensure, ...
4 years, 2 months ago (2016-09-29 01:20:57 UTC) #14
haraken
Maybe do we want to send an Intent-to-ship?
4 years, 2 months ago (2016-09-29 01:28:47 UTC) #17
Anton Obzhirov
Hi, thanks for the review. Will rebase the patch, address the comments and check the ...
4 years, 2 months ago (2016-09-29 13:48:25 UTC) #18
haraken
On 2016/09/29 13:48:25, Anton Obzhirov wrote: > Hi, thanks for the review. > Will rebase ...
4 years, 2 months ago (2016-09-29 16:16:12 UTC) #19
Anton Obzhirov
Hi, I've added the deprecation warning to some test expectations to pass the tests. Will ...
4 years, 2 months ago (2016-09-30 12:11:12 UTC) #23
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/2334223005/40001
4 years, 2 months ago (2016-10-03 06:02:01 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/271722)
4 years, 2 months ago (2016-10-03 06:11:39 UTC) #30
jochen (gone - plz use gerrit)
could we do an intent to ship anyways? it's easier for everybody to track those ...
4 years, 2 months ago (2016-10-04 14:44:38 UTC) #32
Anton Obzhirov
On 2016/10/04 14:44:38, jochen (slow) wrote: > could we do an intent to ship anyways? ...
4 years, 2 months ago (2016-10-05 09:25:16 UTC) #33
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/2334223005/60001
4 years, 1 month ago (2016-10-27 17:58:22 UTC) #36
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-27 19:33:55 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 20:00:08 UTC) #40
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fc17d505758c284f99624ac69b6e2fb72ea7b623
Cr-Commit-Position: refs/heads/master@{#428111}

Powered by Google App Engine
This is Rietveld 408576698