JSValue jsHTMLOListElementCompact(ExecState* exec, JSValue slotBase, const Identifier&) { JSHTMLOListElement* castedThis = static_cast<JSHTMLOListElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLOListElement* imp = static_cast<HTMLOListElement*>(castedThis->impl()); JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::compactAttr)); return result; }
static v8::Handle<v8::Value> compactAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.HTMLOListElement.compact._get"); HTMLOListElement* imp = V8HTMLOListElement::toNative(info.Holder()); return v8Boolean(imp->hasAttribute(WebCore::HTMLNames::compactAttr)); }