JSValue* JSHTMLButtonElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case FormAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); return toJS(exec, WTF::getPtr(imp->form())); } case AccessKeyAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); return jsString(imp->accessKey()); } case DisabledAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); return jsBoolean(imp->disabled()); } case NameAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); return jsString(imp->name()); } case TabIndexAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); return jsNumber(imp->tabIndex()); } case TypeAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); return jsString(imp->type()); } case ValueAttrNum: { HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(impl()); return jsString(imp->value()); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }
JSValue jsHTMLButtonElementName(ExecState* exec, const Identifier&, const PropertySlot& slot) { UNUSED_PARAM(exec); HTMLButtonElement* imp = static_cast<HTMLButtonElement*>(static_cast<JSHTMLButtonElement*>(asObject(slot.slotBase()))->impl()); return jsString(exec, imp->name()); }