JSValue jsHTMLAnchorElementText(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl()); JSValue result = jsString(exec, imp->text()); return result; }
static v8::Handle<v8::Value> textAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.HTMLAnchorElement.text._get"); HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(info.Holder()); return v8String(imp->text()); }
static v8::Handle<v8::Value> textAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(info.Holder()); return v8String(imp->text(), info.GetIsolate()); }