if ((aNameSpaceID == kNameSpaceID_XUL) && (aName == kOpenAtom)) {
if ((aNameSpaceID == kNameSpaceID_None) && (aName == kOpenAtom)) {
RDFElementImpl::UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, PRBool aNotify){    NS_ASSERTION(nsnull != aName, "must have attribute name");    if (nsnull == aName) {        return NS_ERROR_NULL_POINTER;    }    nsresult rv = NS_OK;    PRBool successful = PR_FALSE;    if (nsnull != mAttributes) {        PRInt32 count = mAttributes->Count();        PRInt32 index;        for (index = 0; index < count; index++) {            nsGenericAttribute* attr = (nsGenericAttribute*)mAttributes->ElementAt(index);            if ((attr->mNameSpaceID == aNameSpaceID) && (attr->mName == aName)) {                mAttributes->RemoveElementAt(index);                delete attr;                successful = PR_TRUE;                break;            }        }    }    // XUL Only. Find out if we have a broadcast listener for this element.    if (successful) {        PRInt32 count = mBroadcastListeners.Count();        for (PRInt32 i = 0; i < count; i++)        {            XULBroadcastListener* xulListener = (XULBroadcastListener*)mBroadcastListeners[i];            nsString aString;            aName->ToString(aString);            if (xulListener->mAttribute.EqualsIgnoreCase(aString)) {                // Unset the attribute in the broadcast listener.                nsCOMPtr<nsIContent> contentNode(do_QueryInterface(xulListener->mListener));                                // If the namespace of the attribute and the namespace of the                // tag are identical, then use the namespace of the listener's tag.                // This allows you to do things like set xul:disabled on a xul tag                // and have an html tag be annotated with an html:disabled instead.                            PRInt32 thisNameSpaceID, listenerNameSpaceID;                GetNameSpaceID(thisNameSpaceID);                contentNode->GetNameSpaceID(listenerNameSpaceID);                if (aNameSpaceID == thisNameSpaceID)                    contentNode->UnsetAttribute(listenerNameSpaceID, aName, aNotify);                else contentNode->UnsetAttribute(aNameSpaceID, aName, aNotify);            }        }           // Notify document        if (NS_SUCCEEDED(rv) && aNotify && (nsnull != mDocument)) {            mDocument->AttributeChanged(this, aName, NS_STYLE_HINT_UNKNOWN);        }    }    // End XUL Only Code    // See if they're closing the element.    if ((aNameSpaceID == kNameSpaceID_XUL) && (aName == kOpenAtom)) {        mContentsMustBeGenerated = PR_TRUE;        NS_IF_RELEASE(mChildren);    }    return rv;}