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

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

Make several DOMImplementation API arguments mandatory Make the arguments of the following DOMImplementation API arguments mandatory: - createDocumentType() - createDocument() This matches the specification: http://dom.spec.whatwg.org/#interface-domimplementation The arguments are already mandatory in Firefox and IE10 so the compatibility risk should be low. BUG=272969 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156303

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix remaining failures #

Patch Set 3 : Keep last argument of createDocument() optional #

Patch Set 4 : Keep hasFeature() as it was #

Total comments: 6

Patch Set 5 : Fix createDocument() args #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -138 lines) Patch
M LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/zoom-on-unattached.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/createDocument-namespace-err-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt View 1 chunk +21 lines, -22 lines 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/script-tests/createDocument-namespace-err.js View 1 chunk +2 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/DOMImplementation/script-tests/createDocumentType-err.js View 1 chunk +21 lines, -95 lines 0 comments Download
M LayoutTests/fast/dom/HTMLLinkElement/prefetch-detached.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/custom/registration-context-sharing.html View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
A LayoutTests/fast/dom/implementation-api-args.html View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/implementation-api-args-expected.txt View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/node-move-to-new-document-crash-main.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/change-form-element-document-crash.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/animations/smil-element-target-crash-main.html View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DOMImplementation.idl View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
do-not-use
7 years, 4 months ago (2013-08-14 14:39:35 UTC) #1
haraken
Given the spec and other browsers' behavior, this change looks good, but one comment: https://codereview.chromium.org/22875013/diff/1/LayoutTests/fast/dom/DOMImplementation/script-tests/createDocumentType-err.js ...
7 years, 4 months ago (2013-08-14 15:05:40 UTC) #2
arv (Not doing code reviews)
https://codereview.chromium.org/22875013/diff/1/Source/core/dom/DOMImplementation.idl File Source/core/dom/DOMImplementation.idl (right): https://codereview.chromium.org/22875013/diff/1/Source/core/dom/DOMImplementation.idl#newcode27 Source/core/dom/DOMImplementation.idl:27: boolean hasFeature(DOMString feature, [TreatNullAs=NullString] DOMString version); These changes make ...
7 years, 4 months ago (2013-08-14 15:08:22 UTC) #3
do-not-use
https://codereview.chromium.org/22875013/diff/1/Source/core/dom/DOMImplementation.idl File Source/core/dom/DOMImplementation.idl (right): https://codereview.chromium.org/22875013/diff/1/Source/core/dom/DOMImplementation.idl#newcode34 Source/core/dom/DOMImplementation.idl:34: [RaisesException] Document createDocument([TreatNullAs=NullString] DOMString namespaceURI, On 2013/08/14 15:08:22, arv ...
7 years, 4 months ago (2013-08-14 15:43:01 UTC) #4
do-not-use
Hopefully, someone else agrees that the following is weird: doc = document.implementation.createDocument() -> #document doc.documentElement ...
7 years, 4 months ago (2013-08-14 15:46:14 UTC) #5
arv (Not doing code reviews)
On the dom spec bug, https://www.w3.org/Bugs/Public/show_bug.cgi?id=22959 "--- Comment #8 from Olli Pettay <bugs@pettay.fi> --- I ...
7 years, 4 months ago (2013-08-15 14:21:59 UTC) #6
do-not-use
On 2013/08/15 14:21:59, arv wrote: > On the dom spec bug, https://www.w3.org/Bugs/Public/show_bug.cgi?id=22959 > > "--- ...
7 years, 4 months ago (2013-08-16 07:34:37 UTC) #7
arv (Not doing code reviews)
https://codereview.chromium.org/22875013/diff/17001/LayoutTests/fast/css/zoom-on-unattached.html File LayoutTests/fast/css/zoom-on-unattached.html (right): https://codereview.chromium.org/22875013/diff/17001/LayoutTests/fast/css/zoom-on-unattached.html#newcode6 LayoutTests/fast/css/zoom-on-unattached.html:6: d = document.implementation.createDocument("", ""); FYI, (null, "") is a ...
7 years, 4 months ago (2013-08-16 13:33:27 UTC) #8
do-not-use
https://codereview.chromium.org/22875013/diff/17001/LayoutTests/fast/css/zoom-on-unattached.html File LayoutTests/fast/css/zoom-on-unattached.html (right): https://codereview.chromium.org/22875013/diff/17001/LayoutTests/fast/css/zoom-on-unattached.html#newcode6 LayoutTests/fast/css/zoom-on-unattached.html:6: d = document.implementation.createDocument("", ""); On 2013/08/16 13:33:27, arv wrote: ...
7 years, 4 months ago (2013-08-16 13:47:03 UTC) #9
arv (Not doing code reviews)
LGTM I'm just confused about the IDL annotation. It is clear that the behavior is ...
7 years, 4 months ago (2013-08-16 13:59:09 UTC) #10
do-not-use
On 2013/08/16 13:59:09, arv wrote: > LGTM > > I'm just confused about the IDL ...
7 years, 4 months ago (2013-08-16 14:02:20 UTC) #11
do-not-use
On 2013/08/16 14:02:20, Christophe Dumez wrote: > On 2013/08/16 13:59:09, arv wrote: > > LGTM ...
7 years, 4 months ago (2013-08-16 14:06:40 UTC) #12
arv (Not doing code reviews)
Thanks, that makes some sense. Still LGTM On Fri, Aug 16, 2013 at 10:06 AM, ...
7 years, 4 months ago (2013-08-16 14:26:05 UTC) #13
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-19 08:22:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/22875013/24001
7 years, 4 months ago (2013-08-19 08:37:46 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-08-19 11:02:50 UTC) #16
Message was sent while issue was closed.
Change committed as 156303

Powered by Google App Engine
This is Rietveld 408576698