void JSHTMLIsIndexElement::putValueProperty(ExecState* exec, int token, JSValue* value) { switch (token) { case PromptAttrNum: { HTMLIsIndexElement* imp = static_cast<HTMLIsIndexElement*>(impl()); imp->setPrompt(valueToStringWithNullCheck(exec, value)); break; } } }
JSValue* JSHTMLIsIndexElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case FormAttrNum: { HTMLIsIndexElement* imp = static_cast<HTMLIsIndexElement*>(impl()); return toJS(exec, WTF::getPtr(imp->form())); } case PromptAttrNum: { HTMLIsIndexElement* imp = static_cast<HTMLIsIndexElement*>(impl()); return jsString(exec, imp->prompt()); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }
void setJSHTMLIsIndexElementPrompt(ExecState* exec, JSObject* thisObject, JSValue value) { HTMLIsIndexElement* imp = static_cast<HTMLIsIndexElement*>(static_cast<JSHTMLIsIndexElement*>(thisObject)->impl()); imp->setPrompt(valueToStringWithNullCheck(exec, value)); }