EventHandlerMapEntry* entry = kEventHandlerMap; while (entry->mAttributeAtom) { if (entry->mAttributeAtom == aName) { return PR_TRUE; break; } ++entry; }
aName == nsLayoutAtoms::onkeydown       || aName == nsLayoutAtoms::onkeyup         || aName == nsLayoutAtoms::onkeypress      ||
IsEventHandler(nsIAtom* aName){    const char* name;    aName->GetUTF8String(&name);    if (name[0] != 'o' || name[1] != 'n') {        return PR_FALSE;    }    EventHandlerMapEntry* entry = kEventHandlerMap;    while (entry->mAttributeAtom) {        if (entry->mAttributeAtom == aName) {            return PR_TRUE;            break;        }        ++entry;    }    return PR_FALSE;}