From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmlelem.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index 05f4cfd1177..bc140b14984 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -8033,15 +8033,6 @@ static HRESULT HTMLAttributeCollection_get_dispid(DispatchEx *dispex, const WCHA return S_OK; }
-static HRESULT HTMLAttributeCollection_get_name(DispatchEx *dispex, DISPID id, BSTR *name) -{ - HTMLAttributeCollection *This = HTMLAttributeCollection_from_DispatchEx(dispex); - - FIXME("(%p)->(%lx %p)\n", This, id, name); - - return E_NOTIMPL; -} - static HRESULT HTMLAttributeCollection_invoke(DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller) { @@ -8082,7 +8073,7 @@ static const dispex_static_data_vtbl_t HTMLAttributeCollection_dispex_vtbl = { .traverse = HTMLAttributeCollection_traverse, .unlink = HTMLAttributeCollection_unlink, .get_dispid = HTMLAttributeCollection_get_dispid, - .get_name = HTMLAttributeCollection_get_name, + .get_prop_desc = dispex_index_prop_desc, .invoke = HTMLAttributeCollection_invoke, };
@@ -8121,8 +8112,8 @@ HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **a IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface); This->attrs->elem = This; list_init(&This->attrs->attrs); - init_dispatch(&This->attrs->dispex, &HTMLAttributeCollection_dispex, NULL, - dispex_compat_mode(&iface->event_target.dispex)); + init_dispatch(&This->attrs->dispex, &HTMLAttributeCollection_dispex, This->node.doc->script_global, + dispex_compat_mode(&This->node.event_target.dispex));
*ac = This->attrs; IHTMLAttributeCollection_AddRef(&This->attrs->IHTMLAttributeCollection_iface);