JSValue jsHTMLAnchorElementHostname(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->hostname()); return result; }
static v8::Handle<v8::Value> hostnameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.HTMLAnchorElement.hostname._get"); HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(info.Holder()); return v8String(imp->hostname()); }
static v8::Handle<v8::Value> hostnameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { HTMLAnchorElement* imp = V8HTMLAnchorElement::toNative(info.Holder()); return v8String(imp->hostname(), info.GetIsolate()); }