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

Issue 24483007: Make DOMParser::parseFromString specification compliant and throw exception in error scenario. (Closed)

Created:
7 years, 2 months ago by vivekg_samsung
Modified:
7 years, 2 months ago
Reviewers:
eseidel, vivekg__
CC:
blink-reviews, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make DOMParser::parseFromString specification compliant and throw exception in error scenario. Make DOMParser::parseFromString() allow only the supported mime-types by specification - http://domparsing.spec.whatwg.org/#the-domparser-interface In case of wrong mime type or mixed case mimetype as specified in the specification, throw TypeError exception. Throwing exception can be seen implemented by FF and Opera 12. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158452

Patch Set 1 #

Patch Set 2 : Removing the WebCore prefix to ExceptionState #

Total comments: 1

Patch Set 3 : Patch for landing! #

Total comments: 1

Patch Set 4 : Patch after adding descriptive message. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -16 lines) Patch
M LayoutTests/fast/dom/domparser-parsefromstring-mimetype-support.html View 1 2 3 2 chunks +17 lines, -10 lines 0 comments Download
M LayoutTests/fast/dom/domparser-parsefromstring-mimetype-support-expected.txt View 1 2 3 1 chunk +15 lines, -2 lines 0 comments Download
M Source/core/xml/DOMParser.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/xml/DOMParser.cpp View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M Source/core/xml/DOMParser.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
vivekg__
Please take a look, thank you!
7 years, 2 months ago (2013-09-25 23:34:46 UTC) #1
eseidel
Does IE not throw this exception? If not, this could be a compat worry, but ...
7 years, 2 months ago (2013-09-26 16:37:07 UTC) #2
eseidel
lgtm
7 years, 2 months ago (2013-09-26 16:37:15 UTC) #3
vivekg__
On 2013/09/26 16:37:07, eseidel wrote: > Does IE not throw this exception? If not, this ...
7 years, 2 months ago (2013-09-26 18:17:14 UTC) #4
eseidel
https://codereview.chromium.org/24483007/diff/10001/Source/core/xml/DOMParser.cpp File Source/core/xml/DOMParser.cpp (right): https://codereview.chromium.org/24483007/diff/10001/Source/core/xml/DOMParser.cpp#newcode37 Source/core/xml/DOMParser.cpp:37: es.throwDOMException(TypeError); I think the name of this function is ...
7 years, 2 months ago (2013-09-26 20:18:26 UTC) #5
vivekg__
On 2013/09/26 20:18:26, eseidel wrote: > https://codereview.chromium.org/24483007/diff/10001/Source/core/xml/DOMParser.cpp > File Source/core/xml/DOMParser.cpp (right): > > https://codereview.chromium.org/24483007/diff/10001/Source/core/xml/DOMParser.cpp#newcode37 > ...
7 years, 2 months ago (2013-09-27 10:52:28 UTC) #6
eseidel
lgtm
7 years, 2 months ago (2013-09-27 14:49:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/24483007/20001
7 years, 2 months ago (2013-09-27 14:50:04 UTC) #8
commit-bot: I haz the power
7 years, 2 months ago (2013-09-27 16:04:38 UTC) #9
Message was sent while issue was closed.
Change committed as 158452

Powered by Google App Engine
This is Rietveld 408576698