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

Unified Diff: Source/core/dom/Document.cpp

Issue 254423002: Remove useless calls to DOMImplementation::hasFeature("XML", String()) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 35454d67462e338cfa5aee1b749b3c39d73e1ac1..10978527826c44653e41b2a3f4ed36789309f3ee 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1154,11 +1154,6 @@ void Document::setContentLanguage(const AtomicString& language)
void Document::setXMLVersion(const String& version, ExceptionState& exceptionState)
{
- if (!implementation().hasFeature("XML", String())) {
- exceptionState.throwDOMException(NotSupportedError, "This document does not support XML.");
- return;
- }
-
if (!XMLDocumentParser::supportsXMLVersion(version)) {
exceptionState.throwDOMException(NotSupportedError, "This document does not support the XML version '" + version + "'.");
return;
@@ -1169,11 +1164,6 @@ void Document::setXMLVersion(const String& version, ExceptionState& exceptionSta
void Document::setXMLStandalone(bool standalone, ExceptionState& exceptionState)
{
- if (!implementation().hasFeature("XML", String())) {
- exceptionState.throwDOMException(NotSupportedError, "This document does not support XML.");
- return;
- }
-
m_xmlStandalone = standalone ? Standalone : NotStandalone;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698