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

Issue 144063004: Add support for DOM4's XMLDocument interface (Closed)

Created:
6 years, 11 months ago by Inactive
Modified:
6 years, 11 months ago
CC:
blink-reviews, eae+blinkwatch, fs, apavlov+blink_chromium.org, adamk+blink_chromium.org, pdr, aandrey+blink_chromium.org, rwlbuis, Nils Barth (inactive), krit, caseq+blink_chromium.org, kojih, arv+blink, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, loislo+blink_chromium.org, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, haraken, Nate Chapin, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, ed+blinkwatch_opera.com, f(malita), Stephen Chennney, watchdog-blink-watchlist_google.com, pdr., dominicc (has gone to gerrit)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add support for DOM4's XMLDocument interface Add support for DOM4's XMLDocument interface: http://dom.spec.whatwg.org/#xmldocument DOMImplementation.createDocument() now returns an XMLDocument instead of a Document as per: http://dom.spec.whatwg.org/#dom-domimplementation-createdocument DOMParser.parseFromString() now returns an XMLDocument instead of a Document when the input type is an xml type, as per: http://domparsing.spec.whatwg.org/#dom-domparser-parsefromstring This behavior is consistent with Firefox 26 and IE 11. The compatibility risk is low since an XMLDocument is identical to a Document. R=tkent, arv BUG=238366 BUG=238372 TEST=fast/dom/DOMImplementation/createDocument-XMLDocument.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165607

Patch Set 1 #

Patch Set 2 : Add missing SpecialWrapFor #

Patch Set 3 : Add layout test #

Total comments: 5

Patch Set 4 : Add extra test #

Patch Set 5 : Update newly added test #

Total comments: 1

Patch Set 6 : Remove FIXME about XMLDocument.load() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -84 lines) Patch
M LayoutTests/dom/xhtml/level1/core/hc_attrgetvalue2-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/dom/xhtml/level1/core/hc_nodevalue03-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument-expected.txt View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/Document/clone-node.html View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/Document/clone-node-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/Document/xml-document-focus.xml View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Document/xml-document-focus-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/window-lookup-precedence-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/dom/dom-parse-serialize-display-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/dom-parse-serialize-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/wrapper-classes.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/dom/wrapper-classes-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/security/cross-frame-access-put-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/inspector/console/console-xml-document-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/svg/custom/manually-parsed-embedded-svg-allowed-in-dashboard-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/dom/DOMImplementation.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/dom/DOMImplementation.cpp View 4 chunks +9 lines, -6 lines 0 comments Download
M Source/core/dom/DOMImplementation.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 3 chunks +2 lines, -4 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 3 chunks +13 lines, -6 lines 0 comments Download
M Source/core/dom/Document.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + Source/core/dom/XMLDocument.h View 2 chunks +21 lines, -20 lines 0 comments Download
A + Source/core/dom/XMLDocument.cpp View 2 chunks +12 lines, -6 lines 0 comments Download
A + Source/core/dom/XMLDocument.idl View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M Source/core/frame/Window.idl View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/inspector/DOMPatchSupport.cpp View 2 chunks +4 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGDocument.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGDocument.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGDocument.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGUseElement.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Inactive
6 years, 11 months ago (2014-01-22 01:24:55 UTC) #1
eseidel
We looked at doing this loooong ago: https://bugs.webkit.org/show_bug.cgi?id=9063 https://bugs.webkit.org/show_bug.cgi?id=36480 There are probably more interesting ones ...
6 years, 11 months ago (2014-01-22 01:28:02 UTC) #2
Inactive
On 2014/01/22 01:28:02, eseidel wrote: > We looked at doing this loooong ago: > https://bugs.webkit.org/show_bug.cgi?id=9063 ...
6 years, 11 months ago (2014-01-22 01:58:21 UTC) #3
arv (Not doing code reviews)
LGTM Thanks for working on cleaning up this mess. https://codereview.chromium.org/144063004/diff/80001/LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html File LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html (right): https://codereview.chromium.org/144063004/diff/80001/LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html#newcode12 LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html:12: ...
6 years, 11 months ago (2014-01-22 15:24:16 UTC) #4
Inactive
https://codereview.chromium.org/144063004/diff/80001/LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html File LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html (right): https://codereview.chromium.org/144063004/diff/80001/LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html#newcode12 LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html:12: shouldBe('document.implementation.createDocument("", "").__proto__', 'XMLDocument.prototype'); On 2014/01/22 15:24:19, arv wrote: > ...
6 years, 11 months ago (2014-01-22 15:39:26 UTC) #5
Inactive
https://codereview.chromium.org/144063004/diff/80001/LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html File LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html (right): https://codereview.chromium.org/144063004/diff/80001/LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html#newcode12 LayoutTests/fast/dom/DOMImplementation/createDocument-XMLDocument.html:12: shouldBe('document.implementation.createDocument("", "").__proto__', 'XMLDocument.prototype'); On 2014/01/22 15:24:19, arv wrote: > ...
6 years, 11 months ago (2014-01-22 15:51:51 UTC) #6
tkent
public API changes LGTM.
6 years, 11 months ago (2014-01-22 23:49:31 UTC) #7
Inactive
Eric, do you still have concerns or can I land this?
6 years, 11 months ago (2014-01-22 23:59:15 UTC) #8
eseidel
lgtm If arv is OK with it, I am.
6 years, 11 months ago (2014-01-23 00:08:56 UTC) #9
eseidel
https://codereview.chromium.org/144063004/diff/190001/Source/core/dom/XMLDocument.idl File Source/core/dom/XMLDocument.idl (right): https://codereview.chromium.org/144063004/diff/190001/Source/core/dom/XMLDocument.idl#newcode30 Source/core/dom/XMLDocument.idl:30: // boolean load(DOMString url); I thought we had this ...
6 years, 11 months ago (2014-01-23 00:10:20 UTC) #10
Inactive
On 2014/01/23 00:10:20, eseidel wrote: > https://codereview.chromium.org/144063004/diff/190001/Source/core/dom/XMLDocument.idl > File Source/core/dom/XMLDocument.idl (right): > > https://codereview.chromium.org/144063004/diff/190001/Source/core/dom/XMLDocument.idl#newcode30 > ...
6 years, 11 months ago (2014-01-23 00:24:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/144063004/190001
6 years, 11 months ago (2014-01-23 00:25:27 UTC) #12
eseidel
I'm not actually sure we want to ever expose XMLDocument.load(). It looks like it's a ...
6 years, 11 months ago (2014-01-23 00:27:53 UTC) #13
arv (Not doing code reviews)
I think we had load before but removed it. We should not add it if ...
6 years, 11 months ago (2014-01-23 00:45:27 UTC) #14
Inactive
On 2014/01/23 00:45:27, arv wrote: > I think we had load before but removed it. ...
6 years, 11 months ago (2014-01-23 00:49:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/144063004/310001
6 years, 11 months ago (2014-01-23 00:57:02 UTC) #16
commit-bot: I haz the power
6 years, 11 months ago (2014-01-23 04:36:16 UTC) #17
Message was sent while issue was closed.
Change committed as 165607

Powered by Google App Engine
This is Rietveld 408576698