if (aNodeInfo->Equals(kScriptAtom, kNameSpaceID_XHTML) || aNodeInfo->Equals(kScriptAtom, kNameSpaceID_XUL)) {
if (aNodeInfo->Equals(nsHTMLAtoms::script, kNameSpaceID_XHTML) || aNodeInfo->Equals(nsHTMLAtoms::script, kNameSpaceID_XUL)) {
XULContentSinkImpl::OpenRoot(const PRUnichar** aAttributes,                              const PRUint32 aAttrLen,                              nsINodeInfo *aNodeInfo){    NS_ASSERTION(mState == eInProlog, "how'd we get here?");    if (mState != eInProlog)        return NS_ERROR_UNEXPECTED;    nsresult rv;    if (aNodeInfo->Equals(kScriptAtom, kNameSpaceID_XHTML) ||         aNodeInfo->Equals(kScriptAtom, kNameSpaceID_XUL)) {        PR_LOG(gLog, PR_LOG_ALWAYS,               ("xul: script tag not allowed as root content element"));        return NS_ERROR_UNEXPECTED;    }    // Create the element    nsXULPrototypeElement* element;    rv = CreateElement(aNodeInfo, &element);    if (NS_FAILED(rv)) {#ifdef PR_LOGGING        nsAutoString anodeC;        aNodeInfo->GetName(anodeC);        PR_LOG(gLog, PR_LOG_ALWAYS,               ("xul: unable to create element '%s' at line %d",                NS_ConvertUCS2toUTF8(anodeC).get(),                -1)); // XXX pass in line number#endif        return rv;    }    // Push the element onto the context stack, so that child    // containers will hook up to us as their parent.    rv = mContextStack.Push(element, mState);    if (NS_FAILED(rv)) {        delete element;        return rv;    }    // Add the attributes    rv = AddAttributes(aAttributes, aAttrLen, element);    if (NS_FAILED(rv)) return rv;    mState = eInDocumentElement;    return NS_OK;}