2 * Copyright 2006-2010 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #include "wine/debug.h"
31 #include "mshtml_private.h"
32 #include "htmlevent.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
38 IHTMLRect IHTMLRect_iface;
42 nsIDOMClientRect *nsrect;
45 static inline HTMLRect *impl_from_IHTMLRect(IHTMLRect *iface)
47 return CONTAINING_RECORD(iface, HTMLRect, IHTMLRect_iface);
50 static HRESULT WINAPI HTMLRect_QueryInterface(IHTMLRect *iface, REFIID riid, void **ppv)
52 HTMLRect *This = impl_from_IHTMLRect(iface);
54 if(IsEqualGUID(&IID_IUnknown, riid)) {
55 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
56 *ppv = &This->IHTMLRect_iface;
57 }else if(IsEqualGUID(&IID_IHTMLRect, riid)) {
58 TRACE("(%p)->(IID_IHTMLRect %p)\n", This, ppv);
59 *ppv = &This->IHTMLRect_iface;
60 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
61 return *ppv ? S_OK : E_NOINTERFACE;
63 FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
68 IUnknown_AddRef((IUnknown*)*ppv);
72 static ULONG WINAPI HTMLRect_AddRef(IHTMLRect *iface)
74 HTMLRect *This = impl_from_IHTMLRect(iface);
75 LONG ref = InterlockedIncrement(&This->ref);
77 TRACE("(%p) ref=%d\n", This, ref);
82 static ULONG WINAPI HTMLRect_Release(IHTMLRect *iface)
84 HTMLRect *This = impl_from_IHTMLRect(iface);
85 LONG ref = InterlockedDecrement(&This->ref);
87 TRACE("(%p) ref=%d\n", This, ref);
91 nsIDOMClientRect_Release(This->nsrect);
98 static HRESULT WINAPI HTMLRect_GetTypeInfoCount(IHTMLRect *iface, UINT *pctinfo)
100 HTMLRect *This = impl_from_IHTMLRect(iface);
101 FIXME("(%p)->(%p)\n", This, pctinfo);
105 static HRESULT WINAPI HTMLRect_GetTypeInfo(IHTMLRect *iface, UINT iTInfo,
106 LCID lcid, ITypeInfo **ppTInfo)
108 HTMLRect *This = impl_from_IHTMLRect(iface);
110 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
113 static HRESULT WINAPI HTMLRect_GetIDsOfNames(IHTMLRect *iface, REFIID riid,
114 LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
116 HTMLRect *This = impl_from_IHTMLRect(iface);
118 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
122 static HRESULT WINAPI HTMLRect_Invoke(IHTMLRect *iface, DISPID dispIdMember,
123 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
124 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
126 HTMLRect *This = impl_from_IHTMLRect(iface);
128 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
129 pDispParams, pVarResult, pExcepInfo, puArgErr);
132 static HRESULT WINAPI HTMLRect_put_left(IHTMLRect *iface, LONG v)
134 HTMLRect *This = impl_from_IHTMLRect(iface);
135 FIXME("(%p)->(%d)\n", This, v);
139 static HRESULT WINAPI HTMLRect_get_left(IHTMLRect *iface, LONG *p)
141 HTMLRect *This = impl_from_IHTMLRect(iface);
145 TRACE("(%p)->(%p)\n", This, p);
147 nsres = nsIDOMClientRect_GetLeft(This->nsrect, &left);
148 if(NS_FAILED(nsres)) {
149 ERR("GetLeft failed: %08x\n", nsres);
153 *p = floor(left+0.5);
157 static HRESULT WINAPI HTMLRect_put_top(IHTMLRect *iface, LONG v)
159 HTMLRect *This = impl_from_IHTMLRect(iface);
160 FIXME("(%p)->(%d)\n", This, v);
164 static HRESULT WINAPI HTMLRect_get_top(IHTMLRect *iface, LONG *p)
166 HTMLRect *This = impl_from_IHTMLRect(iface);
170 TRACE("(%p)->(%p)\n", This, p);
172 nsres = nsIDOMClientRect_GetTop(This->nsrect, &top);
173 if(NS_FAILED(nsres)) {
174 ERR("GetTop failed: %08x\n", nsres);
182 static HRESULT WINAPI HTMLRect_put_right(IHTMLRect *iface, LONG v)
184 HTMLRect *This = impl_from_IHTMLRect(iface);
185 FIXME("(%p)->(%d)\n", This, v);
189 static HRESULT WINAPI HTMLRect_get_right(IHTMLRect *iface, LONG *p)
191 HTMLRect *This = impl_from_IHTMLRect(iface);
195 TRACE("(%p)->(%p)\n", This, p);
197 nsres = nsIDOMClientRect_GetRight(This->nsrect, &right);
198 if(NS_FAILED(nsres)) {
199 ERR("GetRight failed: %08x\n", nsres);
203 *p = floor(right+0.5);
207 static HRESULT WINAPI HTMLRect_put_bottom(IHTMLRect *iface, LONG v)
209 HTMLRect *This = impl_from_IHTMLRect(iface);
210 FIXME("(%p)->(%d)\n", This, v);
214 static HRESULT WINAPI HTMLRect_get_bottom(IHTMLRect *iface, LONG *p)
216 HTMLRect *This = impl_from_IHTMLRect(iface);
220 TRACE("(%p)->(%p)\n", This, p);
222 nsres = nsIDOMClientRect_GetBottom(This->nsrect, &bottom);
223 if(NS_FAILED(nsres)) {
224 ERR("GetBottom failed: %08x\n", nsres);
228 *p = floor(bottom+0.5);
232 static const IHTMLRectVtbl HTMLRectVtbl = {
233 HTMLRect_QueryInterface,
236 HTMLRect_GetTypeInfoCount,
237 HTMLRect_GetTypeInfo,
238 HTMLRect_GetIDsOfNames,
250 static const tid_t HTMLRect_iface_tids[] = {
254 static dispex_static_data_t HTMLRect_dispex = {
261 static HRESULT create_html_rect(nsIDOMClientRect *nsrect, IHTMLRect **ret)
265 rect = heap_alloc_zero(sizeof(HTMLRect));
267 return E_OUTOFMEMORY;
269 rect->IHTMLRect_iface.lpVtbl = &HTMLRectVtbl;
272 init_dispex(&rect->dispex, (IUnknown*)&rect->IHTMLRect_iface, &HTMLRect_dispex);
274 nsIDOMClientRect_AddRef(nsrect);
275 rect->nsrect = nsrect;
277 *ret = &rect->IHTMLRect_iface;
281 static inline HTMLElement *impl_from_IHTMLElement2(IHTMLElement2 *iface)
283 return CONTAINING_RECORD(iface, HTMLElement, IHTMLElement2_iface);
286 static HRESULT WINAPI HTMLElement2_QueryInterface(IHTMLElement2 *iface,
287 REFIID riid, void **ppv)
289 HTMLElement *This = impl_from_IHTMLElement2(iface);
290 return IHTMLElement_QueryInterface(&This->IHTMLElement_iface, riid, ppv);
293 static ULONG WINAPI HTMLElement2_AddRef(IHTMLElement2 *iface)
295 HTMLElement *This = impl_from_IHTMLElement2(iface);
296 return IHTMLElement_AddRef(&This->IHTMLElement_iface);
299 static ULONG WINAPI HTMLElement2_Release(IHTMLElement2 *iface)
301 HTMLElement *This = impl_from_IHTMLElement2(iface);
302 return IHTMLElement_Release(&This->IHTMLElement_iface);
305 static HRESULT WINAPI HTMLElement2_GetTypeInfoCount(IHTMLElement2 *iface, UINT *pctinfo)
307 HTMLElement *This = impl_from_IHTMLElement2(iface);
308 return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
311 static HRESULT WINAPI HTMLElement2_GetTypeInfo(IHTMLElement2 *iface, UINT iTInfo,
312 LCID lcid, ITypeInfo **ppTInfo)
314 HTMLElement *This = impl_from_IHTMLElement2(iface);
315 return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
318 static HRESULT WINAPI HTMLElement2_GetIDsOfNames(IHTMLElement2 *iface, REFIID riid,
319 LPOLESTR *rgszNames, UINT cNames,
320 LCID lcid, DISPID *rgDispId)
322 HTMLElement *This = impl_from_IHTMLElement2(iface);
323 return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
327 static HRESULT WINAPI HTMLElement2_Invoke(IHTMLElement2 *iface, DISPID dispIdMember,
328 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
329 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
331 HTMLElement *This = impl_from_IHTMLElement2(iface);
332 return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
333 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
336 static HRESULT WINAPI HTMLElement2_get_scopeName(IHTMLElement2 *iface, BSTR *p)
338 HTMLElement *This = impl_from_IHTMLElement2(iface);
339 FIXME("(%p)->(%p)\n", This, p);
343 static HRESULT WINAPI HTMLElement2_setCapture(IHTMLElement2 *iface, VARIANT_BOOL containerCapture)
345 HTMLElement *This = impl_from_IHTMLElement2(iface);
346 FIXME("(%p)->(%x)\n", This, containerCapture);
350 static HRESULT WINAPI HTMLElement2_releaseCapture(IHTMLElement2 *iface)
352 HTMLElement *This = impl_from_IHTMLElement2(iface);
353 FIXME("(%p)\n", This);
357 static HRESULT WINAPI HTMLElement2_put_onlosecapture(IHTMLElement2 *iface, VARIANT v)
359 HTMLElement *This = impl_from_IHTMLElement2(iface);
360 FIXME("(%p)->()\n", This);
364 static HRESULT WINAPI HTMLElement2_get_onlosecapture(IHTMLElement2 *iface, VARIANT *p)
366 HTMLElement *This = impl_from_IHTMLElement2(iface);
367 FIXME("(%p)->(%p)\n", This, p);
371 static HRESULT WINAPI HTMLElement2_componentFromPoint(IHTMLElement2 *iface,
372 LONG x, LONG y, BSTR *component)
374 HTMLElement *This = impl_from_IHTMLElement2(iface);
375 FIXME("(%p)->(%d %d %p)\n", This, x, y, component);
379 static HRESULT WINAPI HTMLElement2_doScroll(IHTMLElement2 *iface, VARIANT component)
381 HTMLElement *This = impl_from_IHTMLElement2(iface);
383 TRACE("(%p)->(%s)\n", This, debugstr_variant(&component));
385 if(!This->node.doc->content_ready
386 || !This->node.doc->basedoc.doc_obj->in_place_active)
393 static HRESULT WINAPI HTMLElement2_put_onscroll(IHTMLElement2 *iface, VARIANT v)
395 HTMLElement *This = impl_from_IHTMLElement2(iface);
396 FIXME("(%p)->()\n", This);
400 static HRESULT WINAPI HTMLElement2_get_onscroll(IHTMLElement2 *iface, VARIANT *p)
402 HTMLElement *This = impl_from_IHTMLElement2(iface);
403 FIXME("(%p)->(%p)\n", This, p);
407 static HRESULT WINAPI HTMLElement2_put_ondrag(IHTMLElement2 *iface, VARIANT v)
409 HTMLElement *This = impl_from_IHTMLElement2(iface);
411 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
413 return set_node_event(&This->node, EVENTID_DRAG, &v);
416 static HRESULT WINAPI HTMLElement2_get_ondrag(IHTMLElement2 *iface, VARIANT *p)
418 HTMLElement *This = impl_from_IHTMLElement2(iface);
420 TRACE("(%p)->(%p)\n", This, p);
422 return get_node_event(&This->node, EVENTID_DRAG, p);
425 static HRESULT WINAPI HTMLElement2_put_ondragend(IHTMLElement2 *iface, VARIANT v)
427 HTMLElement *This = impl_from_IHTMLElement2(iface);
428 FIXME("(%p)->()\n", This);
432 static HRESULT WINAPI HTMLElement2_get_ondragend(IHTMLElement2 *iface, VARIANT *p)
434 HTMLElement *This = impl_from_IHTMLElement2(iface);
435 FIXME("(%p)->(%p)\n", This, p);
439 static HRESULT WINAPI HTMLElement2_put_ondragenter(IHTMLElement2 *iface, VARIANT v)
441 HTMLElement *This = impl_from_IHTMLElement2(iface);
442 FIXME("(%p)->()\n", This);
446 static HRESULT WINAPI HTMLElement2_get_ondragenter(IHTMLElement2 *iface, VARIANT *p)
448 HTMLElement *This = impl_from_IHTMLElement2(iface);
449 FIXME("(%p)->(%p)\n", This, p);
453 static HRESULT WINAPI HTMLElement2_put_ondragover(IHTMLElement2 *iface, VARIANT v)
455 HTMLElement *This = impl_from_IHTMLElement2(iface);
456 FIXME("(%p)->()\n", This);
460 static HRESULT WINAPI HTMLElement2_get_ondragover(IHTMLElement2 *iface, VARIANT *p)
462 HTMLElement *This = impl_from_IHTMLElement2(iface);
463 FIXME("(%p)->(%p)\n", This, p);
467 static HRESULT WINAPI HTMLElement2_put_ondragleave(IHTMLElement2 *iface, VARIANT v)
469 HTMLElement *This = impl_from_IHTMLElement2(iface);
470 FIXME("(%p)->()\n", This);
474 static HRESULT WINAPI HTMLElement2_get_ondragleave(IHTMLElement2 *iface, VARIANT *p)
476 HTMLElement *This = impl_from_IHTMLElement2(iface);
477 FIXME("(%p)->(%p)\n", This, p);
481 static HRESULT WINAPI HTMLElement2_put_ondrop(IHTMLElement2 *iface, VARIANT v)
483 HTMLElement *This = impl_from_IHTMLElement2(iface);
484 FIXME("(%p)->()\n", This);
488 static HRESULT WINAPI HTMLElement2_get_ondrop(IHTMLElement2 *iface, VARIANT *p)
490 HTMLElement *This = impl_from_IHTMLElement2(iface);
491 FIXME("(%p)->(%p)\n", This, p);
495 static HRESULT WINAPI HTMLElement2_put_onbeforecut(IHTMLElement2 *iface, VARIANT v)
497 HTMLElement *This = impl_from_IHTMLElement2(iface);
498 FIXME("(%p)->()\n", This);
502 static HRESULT WINAPI HTMLElement2_get_onbeforecut(IHTMLElement2 *iface, VARIANT *p)
504 HTMLElement *This = impl_from_IHTMLElement2(iface);
505 FIXME("(%p)->(%p)\n", This, p);
509 static HRESULT WINAPI HTMLElement2_put_oncut(IHTMLElement2 *iface, VARIANT v)
511 HTMLElement *This = impl_from_IHTMLElement2(iface);
512 FIXME("(%p)->()\n", This);
516 static HRESULT WINAPI HTMLElement2_get_oncut(IHTMLElement2 *iface, VARIANT *p)
518 HTMLElement *This = impl_from_IHTMLElement2(iface);
519 FIXME("(%p)->(%p)\n", This, p);
523 static HRESULT WINAPI HTMLElement2_put_onbeforecopy(IHTMLElement2 *iface, VARIANT v)
525 HTMLElement *This = impl_from_IHTMLElement2(iface);
526 FIXME("(%p)->()\n", This);
530 static HRESULT WINAPI HTMLElement2_get_onbeforecopy(IHTMLElement2 *iface, VARIANT *p)
532 HTMLElement *This = impl_from_IHTMLElement2(iface);
533 FIXME("(%p)->(%p)\n", This, p);
537 static HRESULT WINAPI HTMLElement2_put_oncopy(IHTMLElement2 *iface, VARIANT v)
539 HTMLElement *This = impl_from_IHTMLElement2(iface);
540 FIXME("(%p)->()\n", This);
544 static HRESULT WINAPI HTMLElement2_get_oncopy(IHTMLElement2 *iface, VARIANT *p)
546 HTMLElement *This = impl_from_IHTMLElement2(iface);
547 FIXME("(%p)->(%p)\n", This, p);
551 static HRESULT WINAPI HTMLElement2_put_onbeforepaste(IHTMLElement2 *iface, VARIANT v)
553 HTMLElement *This = impl_from_IHTMLElement2(iface);
554 FIXME("(%p)->()\n", This);
558 static HRESULT WINAPI HTMLElement2_get_onbeforepaste(IHTMLElement2 *iface, VARIANT *p)
560 HTMLElement *This = impl_from_IHTMLElement2(iface);
561 FIXME("(%p)->(%p)\n", This, p);
565 static HRESULT WINAPI HTMLElement2_put_onpaste(IHTMLElement2 *iface, VARIANT v)
567 HTMLElement *This = impl_from_IHTMLElement2(iface);
569 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
571 return set_node_event(&This->node, EVENTID_PASTE, &v);
574 static HRESULT WINAPI HTMLElement2_get_onpaste(IHTMLElement2 *iface, VARIANT *p)
576 HTMLElement *This = impl_from_IHTMLElement2(iface);
578 TRACE("(%p)->(%p)\n", This, p);
580 return get_node_event(&This->node, EVENTID_PASTE, p);
583 static HRESULT WINAPI HTMLElement2_get_currentStyle(IHTMLElement2 *iface, IHTMLCurrentStyle **p)
585 HTMLElement *This = impl_from_IHTMLElement2(iface);
587 TRACE("(%p)->(%p)\n", This, p);
589 return HTMLCurrentStyle_Create(This, p);
592 static HRESULT WINAPI HTMLElement2_put_onpropertychange(IHTMLElement2 *iface, VARIANT v)
594 HTMLElement *This = impl_from_IHTMLElement2(iface);
595 FIXME("(%p)->()\n", This);
599 static HRESULT WINAPI HTMLElement2_get_onpropertychange(IHTMLElement2 *iface, VARIANT *p)
601 HTMLElement *This = impl_from_IHTMLElement2(iface);
602 FIXME("(%p)->(%p)\n", This, p);
606 static HRESULT WINAPI HTMLElement2_getClientRects(IHTMLElement2 *iface, IHTMLRectCollection **pRectCol)
608 HTMLElement *This = impl_from_IHTMLElement2(iface);
609 FIXME("(%p)->(%p)\n", This, pRectCol);
613 static HRESULT WINAPI HTMLElement2_getBoundingClientRect(IHTMLElement2 *iface, IHTMLRect **pRect)
615 HTMLElement *This = impl_from_IHTMLElement2(iface);
616 nsIDOMNSElement *nselem;
617 nsIDOMClientRect *nsrect;
621 TRACE("(%p)->(%p)\n", This, pRect);
623 nsres = nsIDOMHTMLElement_QueryInterface(This->node.nsnode, &IID_nsIDOMNSElement,
625 if(NS_FAILED(nsres)) {
626 ERR("Could not get nsIDOMNSElement iface: %08x\n", nsres);
630 nsres = nsIDOMNSElement_GetBoundingClientRect(nselem, &nsrect);
631 nsIDOMNSElement_Release(nselem);
632 if(NS_FAILED(nsres) || !nsrect) {
633 ERR("GetBoindingClientRect failed: %08x\n", nsres);
637 hres = create_html_rect(nsrect, pRect);
639 nsIDOMClientRect_Release(nsrect);
643 static HRESULT WINAPI HTMLElement2_setExpression(IHTMLElement2 *iface, BSTR propname,
644 BSTR expression, BSTR language)
646 HTMLElement *This = impl_from_IHTMLElement2(iface);
647 FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(propname), debugstr_w(expression),
648 debugstr_w(language));
652 static HRESULT WINAPI HTMLElement2_getExpression(IHTMLElement2 *iface, BSTR propname,
655 HTMLElement *This = impl_from_IHTMLElement2(iface);
656 FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), expression);
660 static HRESULT WINAPI HTMLElement2_removeExpression(IHTMLElement2 *iface, BSTR propname,
661 VARIANT_BOOL *pfSuccess)
663 HTMLElement *This = impl_from_IHTMLElement2(iface);
664 FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), pfSuccess);
668 static HRESULT WINAPI HTMLElement2_put_tabIndex(IHTMLElement2 *iface, short v)
670 HTMLElement *This = impl_from_IHTMLElement2(iface);
671 nsIDOMNSHTMLElement *nselem;
674 TRACE("(%p)->(%d)\n", This, v);
676 nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
677 if(NS_FAILED(nsres)) {
678 ERR("Could not get nsIDOMHTMLNSElement: %08x\n", nsres);
682 nsres = nsIDOMNSHTMLElement_SetTabIndex(nselem, v);
683 nsIDOMNSHTMLElement_Release(nselem);
685 ERR("GetTabIndex failed: %08x\n", nsres);
690 static HRESULT WINAPI HTMLElement2_get_tabIndex(IHTMLElement2 *iface, short *p)
692 HTMLElement *This = impl_from_IHTMLElement2(iface);
693 nsIDOMNSHTMLElement *nselem;
697 TRACE("(%p)->(%p)\n", This, p);
699 nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
700 if(NS_FAILED(nsres)) {
701 ERR("Could not get nsIDOMHTMLNSElement: %08x\n", nsres);
705 nsres = nsIDOMNSHTMLElement_GetTabIndex(nselem, &index);
706 nsIDOMNSHTMLElement_Release(nselem);
707 if(NS_FAILED(nsres)) {
708 ERR("GetTabIndex failed: %08x\n", nsres);
716 static HRESULT WINAPI HTMLElement2_focus(IHTMLElement2 *iface)
718 HTMLElement *This = impl_from_IHTMLElement2(iface);
721 TRACE("(%p)\n", This);
723 nsres = nsIDOMHTMLElement_Focus(This->nselem);
725 ERR("Focus failed: %08x\n", nsres);
730 static HRESULT WINAPI HTMLElement2_put_accessKey(IHTMLElement2 *iface, BSTR v)
732 HTMLElement *This = impl_from_IHTMLElement2(iface);
735 static WCHAR accessKeyW[] = {'a','c','c','e','s','s','K','e','y',0};
737 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
739 V_VT(&var) = VT_BSTR;
741 return IHTMLElement_setAttribute(&This->IHTMLElement_iface, accessKeyW, var, 0);
744 static HRESULT WINAPI HTMLElement2_get_accessKey(IHTMLElement2 *iface, BSTR *p)
746 HTMLElement *This = impl_from_IHTMLElement2(iface);
747 FIXME("(%p)->(%p)\n", This, p);
751 static HRESULT WINAPI HTMLElement2_put_onblur(IHTMLElement2 *iface, VARIANT v)
753 HTMLElement *This = impl_from_IHTMLElement2(iface);
755 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
757 return set_node_event(&This->node, EVENTID_BLUR, &v);
760 static HRESULT WINAPI HTMLElement2_get_onblur(IHTMLElement2 *iface, VARIANT *p)
762 HTMLElement *This = impl_from_IHTMLElement2(iface);
764 TRACE("(%p)->(%p)\n", This, p);
766 return get_node_event(&This->node, EVENTID_BLUR, p);
769 static HRESULT WINAPI HTMLElement2_put_onfocus(IHTMLElement2 *iface, VARIANT v)
771 HTMLElement *This = impl_from_IHTMLElement2(iface);
773 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
775 return set_node_event(&This->node, EVENTID_FOCUS, &v);
778 static HRESULT WINAPI HTMLElement2_get_onfocus(IHTMLElement2 *iface, VARIANT *p)
780 HTMLElement *This = impl_from_IHTMLElement2(iface);
782 TRACE("(%p)->(%p)\n", This, p);
784 return get_node_event(&This->node, EVENTID_FOCUS, p);
787 static HRESULT WINAPI HTMLElement2_put_onresize(IHTMLElement2 *iface, VARIANT v)
789 HTMLElement *This = impl_from_IHTMLElement2(iface);
790 FIXME("(%p)->()\n", This);
794 static HRESULT WINAPI HTMLElement2_get_onresize(IHTMLElement2 *iface, VARIANT *p)
796 HTMLElement *This = impl_from_IHTMLElement2(iface);
797 FIXME("(%p)->(%p)\n", This, p);
801 static HRESULT WINAPI HTMLElement2_blur(IHTMLElement2 *iface)
803 HTMLElement *This = impl_from_IHTMLElement2(iface);
804 FIXME("(%p)\n", This);
808 static HRESULT WINAPI HTMLElement2_addFilter(IHTMLElement2 *iface, IUnknown *pUnk)
810 HTMLElement *This = impl_from_IHTMLElement2(iface);
811 FIXME("(%p)->(%p)\n", This, pUnk);
815 static HRESULT WINAPI HTMLElement2_removeFilter(IHTMLElement2 *iface, IUnknown *pUnk)
817 HTMLElement *This = impl_from_IHTMLElement2(iface);
818 FIXME("(%p)->(%p)\n", This, pUnk);
822 static HRESULT WINAPI HTMLElement2_get_clientHeight(IHTMLElement2 *iface, LONG *p)
824 HTMLElement *This = impl_from_IHTMLElement2(iface);
825 nsIDOMNSElement *nselem;
829 TRACE("(%p)->(%p)\n", This, p);
831 nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
832 if(NS_SUCCEEDED(nsres)) {
833 nsIDOMNSElement_GetClientHeight(nselem, &height);
834 nsIDOMNSElement_Release(nselem);
836 ERR("Could not get nsIDOMNSElement: %08x\n", nsres);
843 static HRESULT WINAPI HTMLElement2_get_clientWidth(IHTMLElement2 *iface, LONG *p)
845 HTMLElement *This = impl_from_IHTMLElement2(iface);
846 nsIDOMNSElement *nselem;
850 TRACE("(%p)->(%p)\n", This, p);
852 nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
853 if(NS_SUCCEEDED(nsres)) {
854 nsIDOMNSElement_GetClientWidth(nselem, &width);
855 nsIDOMNSElement_Release(nselem);
857 ERR("Could not get nsIDOMNSElement: %08x\n", nsres);
864 static HRESULT WINAPI HTMLElement2_get_clientTop(IHTMLElement2 *iface, LONG *p)
866 HTMLElement *This = impl_from_IHTMLElement2(iface);
867 nsIDOMNSElement *nselem;
868 PRInt32 client_top = 0;
871 TRACE("(%p)->(%p)\n", This, p);
873 nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
874 if(NS_SUCCEEDED(nsres)) {
875 nsres = nsIDOMNSElement_GetClientTop(nselem, &client_top);
876 nsIDOMNSElement_Release(nselem);
878 ERR("GetScrollHeight failed: %08x\n", nsres);
880 ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
884 TRACE("*p = %d\n", *p);
888 static HRESULT WINAPI HTMLElement2_get_clientLeft(IHTMLElement2 *iface, LONG *p)
890 HTMLElement *This = impl_from_IHTMLElement2(iface);
891 nsIDOMNSElement *nselem;
892 PRInt32 client_left = 0;
895 TRACE("(%p)->(%p)\n", This, p);
897 nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
898 if(NS_SUCCEEDED(nsres)) {
899 nsres = nsIDOMNSElement_GetClientLeft(nselem, &client_left);
900 nsIDOMNSElement_Release(nselem);
902 ERR("GetScrollHeight failed: %08x\n", nsres);
904 ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
908 TRACE("*p = %d\n", *p);
912 static HRESULT WINAPI HTMLElement2_attachEvent(IHTMLElement2 *iface, BSTR event,
913 IDispatch *pDisp, VARIANT_BOOL *pfResult)
915 HTMLElement *This = impl_from_IHTMLElement2(iface);
917 TRACE("(%p)->(%s %p %p)\n", This, debugstr_w(event), pDisp, pfResult);
919 return attach_event(get_node_event_target(&This->node), This->node.nsnode, &This->node.doc->basedoc, event, pDisp, pfResult);
922 static HRESULT WINAPI HTMLElement2_detachEvent(IHTMLElement2 *iface, BSTR event, IDispatch *pDisp)
924 HTMLElement *This = impl_from_IHTMLElement2(iface);
926 TRACE("(%p)->(%s %p)\n", This, debugstr_w(event), pDisp);
928 return detach_event(*get_node_event_target(&This->node), &This->node.doc->basedoc, event, pDisp);
931 static HRESULT WINAPI HTMLElement2_get_readyState(IHTMLElement2 *iface, VARIANT *p)
933 HTMLElement *This = impl_from_IHTMLElement2(iface);
936 TRACE("(%p)->(%p)\n", This, p);
938 if(This->node.vtbl->get_readystate) {
941 hres = This->node.vtbl->get_readystate(&This->node, &str);
945 static const WCHAR completeW[] = {'c','o','m','p','l','e','t','e',0};
947 str = SysAllocString(completeW);
949 return E_OUTOFMEMORY;
957 static HRESULT WINAPI HTMLElement2_put_onreadystatechange(IHTMLElement2 *iface, VARIANT v)
959 HTMLElement *This = impl_from_IHTMLElement2(iface);
961 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
963 return set_node_event(&This->node, EVENTID_READYSTATECHANGE, &v);
966 static HRESULT WINAPI HTMLElement2_get_onreadystatechange(IHTMLElement2 *iface, VARIANT *p)
968 HTMLElement *This = impl_from_IHTMLElement2(iface);
970 TRACE("(%p)->(%p)\n", This, p);
972 return get_node_event(&This->node, EVENTID_READYSTATECHANGE, p);
975 static HRESULT WINAPI HTMLElement2_put_onrowsdelete(IHTMLElement2 *iface, VARIANT v)
977 HTMLElement *This = impl_from_IHTMLElement2(iface);
978 FIXME("(%p)->()\n", This);
982 static HRESULT WINAPI HTMLElement2_get_onrowsdelete(IHTMLElement2 *iface, VARIANT *p)
984 HTMLElement *This = impl_from_IHTMLElement2(iface);
985 FIXME("(%p)->(%p)\n", This, p);
989 static HRESULT WINAPI HTMLElement2_put_onrowsinserted(IHTMLElement2 *iface, VARIANT v)
991 HTMLElement *This = impl_from_IHTMLElement2(iface);
992 FIXME("(%p)->()\n", This);
996 static HRESULT WINAPI HTMLElement2_get_onrowsinserted(IHTMLElement2 *iface, VARIANT *p)
998 HTMLElement *This = impl_from_IHTMLElement2(iface);
999 FIXME("(%p)->(%p)\n", This, p);
1003 static HRESULT WINAPI HTMLElement2_put_oncellchange(IHTMLElement2 *iface, VARIANT v)
1005 HTMLElement *This = impl_from_IHTMLElement2(iface);
1006 FIXME("(%p)->()\n", This);
1010 static HRESULT WINAPI HTMLElement2_get_oncellchange(IHTMLElement2 *iface, VARIANT *p)
1012 HTMLElement *This = impl_from_IHTMLElement2(iface);
1013 FIXME("(%p)->(%p)\n", This, p);
1017 static HRESULT WINAPI HTMLElement2_put_dir(IHTMLElement2 *iface, BSTR v)
1019 HTMLElement *This = impl_from_IHTMLElement2(iface);
1020 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1024 static HRESULT WINAPI HTMLElement2_get_dir(IHTMLElement2 *iface, BSTR *p)
1026 HTMLElement *This = impl_from_IHTMLElement2(iface);
1028 TRACE("(%p)->(%p)\n", This, p);
1036 nsAString_Init(&dir_str, NULL);
1038 nsres = nsIDOMHTMLElement_GetDir(This->nselem, &dir_str);
1039 if(NS_SUCCEEDED(nsres)) {
1040 const PRUnichar *dir;
1041 nsAString_GetData(&dir_str, &dir);
1043 *p = SysAllocString(dir);
1045 ERR("GetDir failed: %08x\n", nsres);
1048 nsAString_Finish(&dir_str);
1051 TRACE("ret %s\n", debugstr_w(*p));
1055 static HRESULT WINAPI HTMLElement2_createControlRange(IHTMLElement2 *iface, IDispatch **range)
1057 HTMLElement *This = impl_from_IHTMLElement2(iface);
1058 FIXME("(%p)->(%p)\n", This, range);
1062 static HRESULT WINAPI HTMLElement2_get_scrollHeight(IHTMLElement2 *iface, LONG *p)
1064 HTMLElement *This = impl_from_IHTMLElement2(iface);
1065 nsIDOMNSElement *nselem;
1069 TRACE("(%p)->(%p)\n", This, p);
1071 nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
1072 if(NS_SUCCEEDED(nsres)) {
1073 nsres = nsIDOMNSElement_GetScrollHeight(nselem, &height);
1074 nsIDOMNSElement_Release(nselem);
1075 if(NS_FAILED(nsres))
1076 ERR("GetScrollHeight failed: %08x\n", nsres);
1078 ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
1082 TRACE("*p = %d\n", *p);
1087 static HRESULT WINAPI HTMLElement2_get_scrollWidth(IHTMLElement2 *iface, LONG *p)
1089 HTMLElement *This = impl_from_IHTMLElement2(iface);
1090 nsIDOMNSElement *nselem;
1094 TRACE("(%p)->(%p)\n", This, p);
1096 nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
1097 if(NS_SUCCEEDED(nsres)) {
1098 nsres = nsIDOMNSElement_GetScrollWidth(nselem, &width);
1099 nsIDOMNSElement_Release(nselem);
1100 if(NS_FAILED(nsres))
1101 ERR("GetScrollWidth failed: %08x\n", nsres);
1103 ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
1107 TRACE("*p = %d\n", *p);
1112 static HRESULT WINAPI HTMLElement2_put_scrollTop(IHTMLElement2 *iface, LONG v)
1114 HTMLElement *This = impl_from_IHTMLElement2(iface);
1115 nsIDOMNSElement *nselem;
1118 TRACE("(%p)->(%d)\n", This, v);
1121 FIXME("NULL nselem\n");
1125 nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
1126 if(NS_SUCCEEDED(nsres)) {
1127 nsIDOMNSElement_SetScrollTop(nselem, v);
1128 nsIDOMNSElement_Release(nselem);
1130 ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
1136 static HRESULT WINAPI HTMLElement2_get_scrollTop(IHTMLElement2 *iface, LONG *p)
1138 HTMLElement *This = impl_from_IHTMLElement2(iface);
1139 nsIDOMNSElement *nselem;
1143 TRACE("(%p)->(%p)\n", This, p);
1145 nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
1146 if(NS_SUCCEEDED(nsres)) {
1147 nsres = nsIDOMNSElement_GetScrollTop(nselem, &top);
1148 nsIDOMNSElement_Release(nselem);
1149 if(NS_FAILED(nsres))
1150 ERR("GetScrollTop failed: %08x\n", nsres);
1152 ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
1156 TRACE("*p = %d\n", *p);
1161 static HRESULT WINAPI HTMLElement2_put_scrollLeft(IHTMLElement2 *iface, LONG v)
1163 HTMLElement *This = impl_from_IHTMLElement2(iface);
1164 nsIDOMNSElement *nselem;
1167 TRACE("(%p)->(%d)\n", This, v);
1170 FIXME("NULL nselem\n");
1174 nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
1175 if(NS_SUCCEEDED(nsres)) {
1176 nsIDOMNSElement_SetScrollLeft(nselem, v);
1177 nsIDOMNSElement_Release(nselem);
1179 ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
1185 static HRESULT WINAPI HTMLElement2_get_scrollLeft(IHTMLElement2 *iface, LONG *p)
1187 HTMLElement *This = impl_from_IHTMLElement2(iface);
1188 nsIDOMNSElement *nselem;
1192 TRACE("(%p)->(%p)\n", This, p);
1195 return E_INVALIDARG;
1199 FIXME("NULL nselem\n");
1203 nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
1204 if(NS_SUCCEEDED(nsres))
1206 nsres = nsIDOMNSElement_GetScrollLeft(nselem, &left);
1207 nsIDOMNSElement_Release(nselem);
1208 if(NS_FAILED(nsres))
1213 TRACE("*p = %d\n", *p);
1218 static HRESULT WINAPI HTMLElement2_clearAttributes(IHTMLElement2 *iface)
1220 HTMLElement *This = impl_from_IHTMLElement2(iface);
1221 FIXME("(%p)\n", This);
1225 static HRESULT WINAPI HTMLElement2_mergeAttributes(IHTMLElement2 *iface, IHTMLElement *mergeThis)
1227 HTMLElement *This = impl_from_IHTMLElement2(iface);
1228 FIXME("(%p)->(%p)\n", This, mergeThis);
1232 static HRESULT WINAPI HTMLElement2_put_oncontextmenu(IHTMLElement2 *iface, VARIANT v)
1234 HTMLElement *This = impl_from_IHTMLElement2(iface);
1235 FIXME("(%p)->()\n", This);
1239 static HRESULT WINAPI HTMLElement2_get_oncontextmenu(IHTMLElement2 *iface, VARIANT *p)
1241 HTMLElement *This = impl_from_IHTMLElement2(iface);
1242 FIXME("(%p)->(%p)\n", This, p);
1246 static HRESULT WINAPI HTMLElement2_insertAdjecentElement(IHTMLElement2 *iface, BSTR where,
1247 IHTMLElement *insertedElement, IHTMLElement **inserted)
1249 HTMLElement *This = impl_from_IHTMLElement2(iface);
1250 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(where), insertedElement, inserted);
1254 static HRESULT WINAPI HTMLElement2_applyElement(IHTMLElement2 *iface, IHTMLElement *apply,
1255 BSTR where, IHTMLElement **applied)
1257 HTMLElement *This = impl_from_IHTMLElement2(iface);
1258 FIXME("(%p)->(%p %s %p)\n", This, apply, debugstr_w(where), applied);
1262 static HRESULT WINAPI HTMLElement2_getAdjecentText(IHTMLElement2 *iface, BSTR where, BSTR *text)
1264 HTMLElement *This = impl_from_IHTMLElement2(iface);
1265 FIXME("(%p)->(%s %p)\n", This, debugstr_w(where), text);
1269 static HRESULT WINAPI HTMLElement2_replaceAdjecentText(IHTMLElement2 *iface, BSTR where,
1270 BSTR newText, BSTR *oldText)
1272 HTMLElement *This = impl_from_IHTMLElement2(iface);
1273 FIXME("(%p)->(%s %s %p)\n", This, debugstr_w(where), debugstr_w(newText), oldText);
1277 static HRESULT WINAPI HTMLElement2_get_canHandleChildren(IHTMLElement2 *iface, VARIANT_BOOL *p)
1279 HTMLElement *This = impl_from_IHTMLElement2(iface);
1280 FIXME("(%p)->(%p)\n", This, p);
1284 static HRESULT WINAPI HTMLElement2_addBehavior(IHTMLElement2 *iface, BSTR bstrUrl,
1285 VARIANT *pvarFactory, LONG *pCookie)
1287 HTMLElement *This = impl_from_IHTMLElement2(iface);
1288 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(bstrUrl), pvarFactory, pCookie);
1292 static HRESULT WINAPI HTMLElement2_removeBehavior(IHTMLElement2 *iface, LONG cookie,
1293 VARIANT_BOOL *pfResult)
1295 HTMLElement *This = impl_from_IHTMLElement2(iface);
1296 FIXME("(%p)->(%d %p)\n", This, cookie, pfResult);
1300 static HRESULT WINAPI HTMLElement2_get_runtimeStyle(IHTMLElement2 *iface, IHTMLStyle **p)
1302 HTMLElement *This = impl_from_IHTMLElement2(iface);
1303 FIXME("(%p)->(%p)\n", This, p);
1307 static HRESULT WINAPI HTMLElement2_get_behaviorUrns(IHTMLElement2 *iface, IDispatch **p)
1309 HTMLElement *This = impl_from_IHTMLElement2(iface);
1310 FIXME("(%p)->(%p)\n", This, p);
1314 static HRESULT WINAPI HTMLElement2_put_tagUrn(IHTMLElement2 *iface, BSTR v)
1316 HTMLElement *This = impl_from_IHTMLElement2(iface);
1317 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1321 static HRESULT WINAPI HTMLElement2_get_tagUrn(IHTMLElement2 *iface, BSTR *p)
1323 HTMLElement *This = impl_from_IHTMLElement2(iface);
1324 FIXME("(%p)->(%p)\n", This, p);
1328 static HRESULT WINAPI HTMLElement2_put_onbeforeeditfocus(IHTMLElement2 *iface, VARIANT vv)
1330 HTMLElement *This = impl_from_IHTMLElement2(iface);
1331 FIXME("(%p)->()\n", This);
1335 static HRESULT WINAPI HTMLElement2_get_onbeforeeditfocus(IHTMLElement2 *iface, VARIANT *p)
1337 HTMLElement *This = impl_from_IHTMLElement2(iface);
1338 FIXME("(%p)->(%p)\n", This, p);
1342 static HRESULT WINAPI HTMLElement2_get_readyStateValue(IHTMLElement2 *iface, LONG *p)
1344 HTMLElement *This = impl_from_IHTMLElement2(iface);
1345 FIXME("(%p)->(%p)\n", This, p);
1349 static HRESULT WINAPI HTMLElement2_getElementsByTagName(IHTMLElement2 *iface, BSTR v,
1350 IHTMLElementCollection **pelColl)
1352 HTMLElement *This = impl_from_IHTMLElement2(iface);
1353 nsIDOMNodeList *nslist;
1357 TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
1359 nsAString_InitDepend(&tag_str, v);
1360 nsres = nsIDOMHTMLElement_GetElementsByTagName(This->nselem, &tag_str, &nslist);
1361 nsAString_Finish(&tag_str);
1362 if(NS_FAILED(nsres)) {
1363 ERR("GetElementByTagName failed: %08x\n", nsres);
1367 *pelColl = create_collection_from_nodelist(This->node.doc,
1368 (IUnknown*)&This->IHTMLElement_iface, nslist);
1369 nsIDOMNodeList_Release(nslist);
1373 static const IHTMLElement2Vtbl HTMLElement2Vtbl = {
1374 HTMLElement2_QueryInterface,
1375 HTMLElement2_AddRef,
1376 HTMLElement2_Release,
1377 HTMLElement2_GetTypeInfoCount,
1378 HTMLElement2_GetTypeInfo,
1379 HTMLElement2_GetIDsOfNames,
1380 HTMLElement2_Invoke,
1381 HTMLElement2_get_scopeName,
1382 HTMLElement2_setCapture,
1383 HTMLElement2_releaseCapture,
1384 HTMLElement2_put_onlosecapture,
1385 HTMLElement2_get_onlosecapture,
1386 HTMLElement2_componentFromPoint,
1387 HTMLElement2_doScroll,
1388 HTMLElement2_put_onscroll,
1389 HTMLElement2_get_onscroll,
1390 HTMLElement2_put_ondrag,
1391 HTMLElement2_get_ondrag,
1392 HTMLElement2_put_ondragend,
1393 HTMLElement2_get_ondragend,
1394 HTMLElement2_put_ondragenter,
1395 HTMLElement2_get_ondragenter,
1396 HTMLElement2_put_ondragover,
1397 HTMLElement2_get_ondragover,
1398 HTMLElement2_put_ondragleave,
1399 HTMLElement2_get_ondragleave,
1400 HTMLElement2_put_ondrop,
1401 HTMLElement2_get_ondrop,
1402 HTMLElement2_put_onbeforecut,
1403 HTMLElement2_get_onbeforecut,
1404 HTMLElement2_put_oncut,
1405 HTMLElement2_get_oncut,
1406 HTMLElement2_put_onbeforecopy,
1407 HTMLElement2_get_onbeforecopy,
1408 HTMLElement2_put_oncopy,
1409 HTMLElement2_get_oncopy,
1410 HTMLElement2_put_onbeforepaste,
1411 HTMLElement2_get_onbeforepaste,
1412 HTMLElement2_put_onpaste,
1413 HTMLElement2_get_onpaste,
1414 HTMLElement2_get_currentStyle,
1415 HTMLElement2_put_onpropertychange,
1416 HTMLElement2_get_onpropertychange,
1417 HTMLElement2_getClientRects,
1418 HTMLElement2_getBoundingClientRect,
1419 HTMLElement2_setExpression,
1420 HTMLElement2_getExpression,
1421 HTMLElement2_removeExpression,
1422 HTMLElement2_put_tabIndex,
1423 HTMLElement2_get_tabIndex,
1425 HTMLElement2_put_accessKey,
1426 HTMLElement2_get_accessKey,
1427 HTMLElement2_put_onblur,
1428 HTMLElement2_get_onblur,
1429 HTMLElement2_put_onfocus,
1430 HTMLElement2_get_onfocus,
1431 HTMLElement2_put_onresize,
1432 HTMLElement2_get_onresize,
1434 HTMLElement2_addFilter,
1435 HTMLElement2_removeFilter,
1436 HTMLElement2_get_clientHeight,
1437 HTMLElement2_get_clientWidth,
1438 HTMLElement2_get_clientTop,
1439 HTMLElement2_get_clientLeft,
1440 HTMLElement2_attachEvent,
1441 HTMLElement2_detachEvent,
1442 HTMLElement2_get_readyState,
1443 HTMLElement2_put_onreadystatechange,
1444 HTMLElement2_get_onreadystatechange,
1445 HTMLElement2_put_onrowsdelete,
1446 HTMLElement2_get_onrowsdelete,
1447 HTMLElement2_put_onrowsinserted,
1448 HTMLElement2_get_onrowsinserted,
1449 HTMLElement2_put_oncellchange,
1450 HTMLElement2_get_oncellchange,
1451 HTMLElement2_put_dir,
1452 HTMLElement2_get_dir,
1453 HTMLElement2_createControlRange,
1454 HTMLElement2_get_scrollHeight,
1455 HTMLElement2_get_scrollWidth,
1456 HTMLElement2_put_scrollTop,
1457 HTMLElement2_get_scrollTop,
1458 HTMLElement2_put_scrollLeft,
1459 HTMLElement2_get_scrollLeft,
1460 HTMLElement2_clearAttributes,
1461 HTMLElement2_mergeAttributes,
1462 HTMLElement2_put_oncontextmenu,
1463 HTMLElement2_get_oncontextmenu,
1464 HTMLElement2_insertAdjecentElement,
1465 HTMLElement2_applyElement,
1466 HTMLElement2_getAdjecentText,
1467 HTMLElement2_replaceAdjecentText,
1468 HTMLElement2_get_canHandleChildren,
1469 HTMLElement2_addBehavior,
1470 HTMLElement2_removeBehavior,
1471 HTMLElement2_get_runtimeStyle,
1472 HTMLElement2_get_behaviorUrns,
1473 HTMLElement2_put_tagUrn,
1474 HTMLElement2_get_tagUrn,
1475 HTMLElement2_put_onbeforeeditfocus,
1476 HTMLElement2_get_onbeforeeditfocus,
1477 HTMLElement2_get_readyStateValue,
1478 HTMLElement2_getElementsByTagName,
1481 void HTMLElement2_Init(HTMLElement *This)
1483 This->IHTMLElement2_iface.lpVtbl = &HTMLElement2Vtbl;