mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 505783 - Make HTML elements honor script-set xml:base. r=jonas.
This commit is contained in:
parent
a064e64688
commit
4e335c0da3
@ -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