if (aURI.Find(spec) == 0) {
nsAutoString str(aURI); if (str.Find(spec) == 0) {
nsXULContentUtils::MakeElementID(nsIDocument* aDocument, const nsString& aURI, nsString& aElementID){    // Convert a URI into an element ID that can be accessed from the    // DOM APIs.    nsresult rv;    nsCOMPtr<nsIURI> docURL;    rv = aDocument->GetBaseURL(*getter_AddRefs(docURL));    if (NS_FAILED(rv)) return rv;    nsXPIDLCString spec;    docURL->GetSpec(getter_Copies(spec));    if (! spec)        return NS_ERROR_FAILURE;    if (aURI.Find(spec) == 0) {#ifdef USE_BROKEN_RELATIVE_PARSING        static const PRInt32 kFudge = 1;  // XXX assume '#'#else        static const PRInt32 kFudge = 0;#endif        PRInt32 len = PL_strlen(spec);        aURI.Right(aElementID, aURI.Length() - (len + kFudge));    }    else {        aElementID = aURI;    }    return NS_OK;}