From ff231a3159be6c25ba87e5deaaa4f4647a822877 Mon Sep 17 00:00:00 2001 From: Henri Sivonen Date: Thu, 27 Aug 2009 10:28:03 +0300 Subject: [PATCH] Bug 505783 - Make HTML elements honor script-set xml:base. r=jonas. --- content/html/content/src/nsGenericHTMLElement.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index 331b1cb711bf..4405e9db67b0 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -1177,16 +1177,6 @@ nsGenericHTMLElement::GetBaseURI() const return uri; } - // If we are a plain old HTML element (not XHTML), don't bother asking the - // base class -- our base URI is determined solely by the document base. - if (IsInHTMLDocument()) { - // If we got here, GetOwnerDoc() is not null - nsIURI *uri = GetOwnerDoc()->GetBaseURI(); - NS_IF_ADDREF(uri); - - return uri; - } - return nsGenericHTMLElementBase::GetBaseURI(); }