Backed out changeset b97c6b960d85 (bug 1264323)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Fri, 01 Jul 2016 14:07:37 +0200
changeset 383214 9d17de23a08caf37660b65d1bef9755174bc4eb7
parent 383213 f531396cd66b517efa632d0d61db3b6a569ba6ae
child 383215 fa394e9ab7168769233fd8999cb8cc076b951c5c
push id21963
push userdmitchell@mozilla.com
push dateFri, 01 Jul 2016 19:54:18 +0000
bugs1264323
milestone50.0a1
backs outb97c6b960d85c9b02c821ab87944a652d75174b8
Backed out changeset b97c6b960d85 (bug 1264323)
dom/base/nsDocument.cpp
testing/web-platform/meta/dom/nodes/Document-createElement-namespace.html.ini
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -13370,21 +13370,16 @@ void
 nsIDocument::SetCachedEncoder(already_AddRefed<nsIDocumentEncoder> aEncoder)
 {
   mCachedEncoder = aEncoder;
 }
 
 void
 nsIDocument::SetContentTypeInternal(const nsACString& aType)
 {
-  if (!IsHTMLOrXHTML() && mDefaultElementType == kNameSpaceID_None &&
-      aType.EqualsLiteral("application/xhtml+xml")) {
-    mDefaultElementType = kNameSpaceID_XHTML;
-  }
-
   mCachedEncoder = nullptr;
   mContentType = aType;
 }
 
 nsILoadContext*
 nsIDocument::GetLoadContext() const
 {
   return mDocumentContainer;
--- a/testing/web-platform/meta/dom/nodes/Document-createElement-namespace.html.ini
+++ b/testing/web-platform/meta/dom/nodes/Document-createElement-namespace.html.ini
@@ -1,8 +1,11 @@
 [Document-createElement-namespace.html]
   type: testharness
   [Created element's namespace in created XHTML document]
     expected: FAIL
 
   [Created element's namespace in created SVG document]
     expected: FAIL
 
+  [Created element's namespace in created XHTML document by DOMParser ('application/xhtml+xml')]
+    expected: FAIL
+