mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 505783 - Make HTML elements honor script-set xml:base. r=jonas.
This commit is contained in:
parent
189c695054
commit
ff231a3159
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user