| 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;
|
| }
|
|
|
|
|