Bug 257195 - relative URIs in <svg:script> not working. r=sicking, sr=jst

This commit is contained in:
tor%cs.brown.edu 2004-08-30 15:55:36 +00:00
parent 568a7aa4b3
commit 2a2ab24b3d

View File

@ -302,8 +302,10 @@ nsSVGScriptElement::GetScriptURI()
nsIURI *uri = nsnull;
nsAutoString src;
mHref->GetAnimVal(src);
if (!src.IsEmpty())
NS_NewURI(&uri, src);
if (!src.IsEmpty()) {
nsCOMPtr<nsIURI> baseURI = GetBaseURI();
NS_NewURI(&uri, src, nsnull, baseURI);
}
return uri;
}