if (str.Find(spec.get()) == 0) {
if (str.Find(spec) == 0) {
nsXULContentUtils::MakeElementID(nsIDocument* aDocument, const nsAString& aURI, nsAString& aElementID){    // Convert a URI into an element ID that can be accessed from the    // DOM APIs.    nsCAutoString spec;    aDocument->GetBaseURI()->GetSpec(spec);    // XXX FIX ME to not do a copy    nsAutoString str(aURI);    if (str.Find(spec.get()) == 0) {#ifdef USE_BROKEN_RELATIVE_PARSING        static const PRInt32 kFudge = 1;  // XXX assume '#'#else        static const PRInt32 kFudge = 0;#endif        PRInt32 len = spec.Length();        aElementID = Substring(aURI, len + kFudge, aURI.Length() - (len + kFudge));    }    else {        aElementID = aURI;    }    return NS_OK;}