commit | 565958bc22e2d49fed7af144482c2bf4d416fec5 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Thu Oct 25 12:09:25 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Oct 25 12:09:25 2018 |
tree | 22e44536e8ab7f096be9bec50bfcfffba020f8c7 | |
parent | ea988c04704a88cd171f36e69d1276fe3c5ca20e [diff] |
Insert an error message block when parsing was stopped after an error The <parsererror> element was not being added to the parsed document in certain cases involving attribute parsing. For example, if an undeclared namespace prefix was used in the document, then parsing would stop, but a <parsererror> element would not be inserted into the document to indicate that a parsing error occurred. When XMLDocumentParser::StopParsing() is called to stop parsing, call InsertErrorMessageBlock() to insert the <parsererror> element if an error occurred. Based on https://codereview.chromium.org/771493002/ by dtrebbien@gmail.com Bug: 295809, 898775 Change-Id: Ic67a3ab885fae4b01ca92f6d927b3f523f7423ed Reviewed-on: https://chromium-review.googlesource.com/c/1224791 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#602674}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .