Bug 72522, implemented DOM Level 3 baseURI property (node interface). r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@90803 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1705,6 +1705,21 @@ nsHTMLDocument::IsSupported(const nsAReadableString& aFeature,
|
||||
return nsDocument::IsSupported(aFeature, aVersion, aReturn);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDocument::GetBaseURI(nsAWritableString &aURI)
|
||||
{
|
||||
aURI.Truncate();
|
||||
nsCOMPtr<nsIURI> uri(do_QueryInterface(mBaseURL ? mBaseURL : mDocumentURL));
|
||||
if (uri) {
|
||||
nsXPIDLCString spec;
|
||||
uri->GetSpec(getter_Copies(spec));
|
||||
if (spec) {
|
||||
CopyASCIItoUCS2(nsLiteralCString(spec), aURI);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// nsIDOMHTMLDocument interface implementation
|
||||
|
||||
Reference in New Issue
Block a user