2 * Copyright 2006 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
28 #include "wine/debug.h"
29 #include "wine/unicode.h"
31 #include "mshtml_private.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
35 #define HTMLELEM2_THIS(iface) DEFINE_THIS(HTMLElement, HTMLElement2, iface)
37 static HRESULT WINAPI HTMLElement2_QueryInterface(IHTMLElement2 *iface,
38 REFIID riid, void **ppv)
40 HTMLElement *This = HTMLELEM2_THIS(iface);
41 return IHTMLElement_QueryInterface(HTMLELEM(This), riid, ppv);
44 static ULONG WINAPI HTMLElement2_AddRef(IHTMLElement2 *iface)
46 HTMLElement *This = HTMLELEM2_THIS(iface);
47 return IHTMLElement_AddRef(HTMLELEM(This));
50 static ULONG WINAPI HTMLElement2_Release(IHTMLElement2 *iface)
52 HTMLElement *This = HTMLELEM2_THIS(iface);
53 return IHTMLElement_Release(HTMLELEM(This));
56 static HRESULT WINAPI HTMLElement2_GetTypeInfoCount(IHTMLElement2 *iface, UINT *pctinfo)
58 HTMLElement *This = HTMLELEM2_THIS(iface);
59 FIXME("(%p)->(%p)\n", This, pctinfo);
63 static HRESULT WINAPI HTMLElement2_GetTypeInfo(IHTMLElement2 *iface, UINT iTInfo,
64 LCID lcid, ITypeInfo **ppTInfo)
66 HTMLElement *This = HTMLELEM2_THIS(iface);
67 FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
71 static HRESULT WINAPI HTMLElement2_GetIDsOfNames(IHTMLElement2 *iface, REFIID riid,
72 LPOLESTR *rgszNames, UINT cNames,
73 LCID lcid, DISPID *rgDispId)
75 HTMLElement *This = HTMLELEM2_THIS(iface);
76 FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
81 static HRESULT WINAPI HTMLElement2_Invoke(IHTMLElement2 *iface, DISPID dispIdMember,
82 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
83 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
85 HTMLElement *This = HTMLELEM2_THIS(iface);
86 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
87 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
91 static HRESULT WINAPI HTMLElement2_get_scopeName(IHTMLElement2 *iface, BSTR *p)
93 HTMLElement *This = HTMLELEM2_THIS(iface);
94 FIXME("(%p)->(%p)\n", This, p);
98 static HRESULT WINAPI HTMLElement2_setCapture(IHTMLElement2 *iface, VARIANT_BOOL containerCapture)
100 HTMLElement *This = HTMLELEM2_THIS(iface);
101 FIXME("(%p)->(%x)\n", This, containerCapture);
105 static HRESULT WINAPI HTMLElement2_releaseCapture(IHTMLElement2 *iface)
107 HTMLElement *This = HTMLELEM2_THIS(iface);
108 FIXME("(%p)\n", This);
112 static HRESULT WINAPI HTMLElement2_put_onlosecapture(IHTMLElement2 *iface, VARIANT v)
114 HTMLElement *This = HTMLELEM2_THIS(iface);
115 FIXME("(%p)->()\n", This);
119 static HRESULT WINAPI HTMLElement2_get_onlosecapture(IHTMLElement2 *iface, VARIANT *p)
121 HTMLElement *This = HTMLELEM2_THIS(iface);
122 FIXME("(%p)->(%p)\n", This, p);
126 static HRESULT WINAPI HTMLElement2_componentFromPoint(IHTMLElement2 *iface,
127 long x, long y, BSTR *component)
129 HTMLElement *This = HTMLELEM2_THIS(iface);
130 FIXME("(%p)->(%ld %ld %p)\n", This, x, y, component);
134 static HRESULT WINAPI HTMLElement2_doScroll(IHTMLElement2 *iface, VARIANT component)
136 HTMLElement *This = HTMLELEM2_THIS(iface);
137 FIXME("(%p)->()\n", This);
141 static HRESULT WINAPI HTMLElement2_put_onscroll(IHTMLElement2 *iface, VARIANT v)
143 HTMLElement *This = HTMLELEM2_THIS(iface);
144 FIXME("(%p)->()\n", This);
148 static HRESULT WINAPI HTMLElement2_get_onscroll(IHTMLElement2 *iface, VARIANT *p)
150 HTMLElement *This = HTMLELEM2_THIS(iface);
151 FIXME("(%p)->(%p)\n", This, p);
155 static HRESULT WINAPI HTMLElement2_put_ondrag(IHTMLElement2 *iface, VARIANT v)
157 HTMLElement *This = HTMLELEM2_THIS(iface);
158 FIXME("(%p)->()\n", This);
162 static HRESULT WINAPI HTMLElement2_get_ondrag(IHTMLElement2 *iface, VARIANT *p)
164 HTMLElement *This = HTMLELEM2_THIS(iface);
165 FIXME("(%p)->(%p)\n", This, p);
169 static HRESULT WINAPI HTMLElement2_put_ondragend(IHTMLElement2 *iface, VARIANT v)
171 HTMLElement *This = HTMLELEM2_THIS(iface);
172 FIXME("(%p)->()\n", This);
176 static HRESULT WINAPI HTMLElement2_get_ondragend(IHTMLElement2 *iface, VARIANT *p)
178 HTMLElement *This = HTMLELEM2_THIS(iface);
179 FIXME("(%p)->(%p)\n", This, p);
183 static HRESULT WINAPI HTMLElement2_put_ondragenter(IHTMLElement2 *iface, VARIANT v)
185 HTMLElement *This = HTMLELEM2_THIS(iface);
186 FIXME("(%p)->()\n", This);
190 static HRESULT WINAPI HTMLElement2_get_ondragenter(IHTMLElement2 *iface, VARIANT *p)
192 HTMLElement *This = HTMLELEM2_THIS(iface);
193 FIXME("(%p)->(%p)\n", This, p);
197 static HRESULT WINAPI HTMLElement2_put_ondragover(IHTMLElement2 *iface, VARIANT v)
199 HTMLElement *This = HTMLELEM2_THIS(iface);
200 FIXME("(%p)->()\n", This);
204 static HRESULT WINAPI HTMLElement2_get_ondragover(IHTMLElement2 *iface, VARIANT *p)
206 HTMLElement *This = HTMLELEM2_THIS(iface);
207 FIXME("(%p)->(%p)\n", This, p);
211 static HRESULT WINAPI HTMLElement2_put_ondragleave(IHTMLElement2 *iface, VARIANT v)
213 HTMLElement *This = HTMLELEM2_THIS(iface);
214 FIXME("(%p)->()\n", This);
218 static HRESULT WINAPI HTMLElement2_get_ondragleave(IHTMLElement2 *iface, VARIANT *p)
220 HTMLElement *This = HTMLELEM2_THIS(iface);
221 FIXME("(%p)->(%p)\n", This, p);
225 static HRESULT WINAPI HTMLElement2_put_ondrop(IHTMLElement2 *iface, VARIANT v)
227 HTMLElement *This = HTMLELEM2_THIS(iface);
228 FIXME("(%p)->()\n", This);
232 static HRESULT WINAPI HTMLElement2_get_ondrop(IHTMLElement2 *iface, VARIANT *p)
234 HTMLElement *This = HTMLELEM2_THIS(iface);
235 FIXME("(%p)->(%p)\n", This, p);
239 static HRESULT WINAPI HTMLElement2_put_onbeforecut(IHTMLElement2 *iface, VARIANT v)
241 HTMLElement *This = HTMLELEM2_THIS(iface);
242 FIXME("(%p)->()\n", This);
246 static HRESULT WINAPI HTMLElement2_get_onbeforecut(IHTMLElement2 *iface, VARIANT *p)
248 HTMLElement *This = HTMLELEM2_THIS(iface);
249 FIXME("(%p)->(%p)\n", This, p);
253 static HRESULT WINAPI HTMLElement2_put_oncut(IHTMLElement2 *iface, VARIANT v)
255 HTMLElement *This = HTMLELEM2_THIS(iface);
256 FIXME("(%p)->()\n", This);
260 static HRESULT WINAPI HTMLElement2_get_oncut(IHTMLElement2 *iface, VARIANT *p)
262 HTMLElement *This = HTMLELEM2_THIS(iface);
263 FIXME("(%p)->(%p)\n", This, p);
267 static HRESULT WINAPI HTMLElement2_put_onbeforecopy(IHTMLElement2 *iface, VARIANT v)
269 HTMLElement *This = HTMLELEM2_THIS(iface);
270 FIXME("(%p)->()\n", This);
274 static HRESULT WINAPI HTMLElement2_get_onbeforecopy(IHTMLElement2 *iface, VARIANT *p)
276 HTMLElement *This = HTMLELEM2_THIS(iface);
277 FIXME("(%p)->(%p)\n", This, p);
281 static HRESULT WINAPI HTMLElement2_put_oncopy(IHTMLElement2 *iface, VARIANT v)
283 HTMLElement *This = HTMLELEM2_THIS(iface);
284 FIXME("(%p)->()\n", This);
288 static HRESULT WINAPI HTMLElement2_get_oncopy(IHTMLElement2 *iface, VARIANT *p)
290 HTMLElement *This = HTMLELEM2_THIS(iface);
291 FIXME("(%p)->(%p)\n", This, p);
295 static HRESULT WINAPI HTMLElement2_put_onbeforepaste(IHTMLElement2 *iface, VARIANT v)
297 HTMLElement *This = HTMLELEM2_THIS(iface);
298 FIXME("(%p)->()\n", This);
302 static HRESULT WINAPI HTMLElement2_get_onbeforepaste(IHTMLElement2 *iface, VARIANT *p)
304 HTMLElement *This = HTMLELEM2_THIS(iface);
305 FIXME("(%p)->(%p)\n", This, p);
309 static HRESULT WINAPI HTMLElement2_put_onpaste(IHTMLElement2 *iface, VARIANT v)
311 HTMLElement *This = HTMLELEM2_THIS(iface);
312 FIXME("(%p)->()\n", This);
316 static HRESULT WINAPI HTMLElement2_get_onpaste(IHTMLElement2 *iface, VARIANT *p)
318 HTMLElement *This = HTMLELEM2_THIS(iface);
319 FIXME("(%p)->(%p)\n", This, p);
323 static HRESULT WINAPI HTMLElement2_get_currentStyle(IHTMLElement2 *iface, IHTMLCurrentStyle **p)
325 HTMLElement *This = HTMLELEM2_THIS(iface);
326 FIXME("(%p)->(%p)\n", This, p);
330 static HRESULT WINAPI HTMLElement2_put_onpropertychange(IHTMLElement2 *iface, VARIANT v)
332 HTMLElement *This = HTMLELEM2_THIS(iface);
333 FIXME("(%p)->()\n", This);
337 static HRESULT WINAPI HTMLElement2_get_onpropertychange(IHTMLElement2 *iface, VARIANT *p)
339 HTMLElement *This = HTMLELEM2_THIS(iface);
340 FIXME("(%p)->(%p)\n", This, p);
344 static HRESULT WINAPI HTMLElement2_getClientRects(IHTMLElement2 *iface, IHTMLRectCollection **pRectCol)
346 HTMLElement *This = HTMLELEM2_THIS(iface);
347 FIXME("(%p)->(%p)\n", This, pRectCol);
351 static HRESULT WINAPI HTMLElement2_getBoundingClientRect(IHTMLElement2 *iface, IHTMLRect **pRect)
353 HTMLElement *This = HTMLELEM2_THIS(iface);
354 FIXME("(%p)->(%p)\n", This, pRect);
358 static HRESULT WINAPI HTMLElement2_setExpression(IHTMLElement2 *iface, BSTR propname,
359 BSTR expression, BSTR language)
361 HTMLElement *This = HTMLELEM2_THIS(iface);
362 FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(propname), debugstr_w(expression),
363 debugstr_w(language));
367 static HRESULT WINAPI HTMLElement2_getExpression(IHTMLElement2 *iface, BSTR propname,
370 HTMLElement *This = HTMLELEM2_THIS(iface);
371 FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), expression);
375 static HRESULT WINAPI HTMLElement2_removeExpression(IHTMLElement2 *iface, BSTR propname,
376 VARIANT_BOOL *pfSuccess)
378 HTMLElement *This = HTMLELEM2_THIS(iface);
379 FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), pfSuccess);
383 static HRESULT WINAPI HTMLElement2_put_tabIndex(IHTMLElement2 *iface, short v)
385 HTMLElement *This = HTMLELEM2_THIS(iface);
386 FIXME("(%p)->(%d)\n", This, v);
390 static HRESULT WINAPI HTMLElement2_get_tabIndex(IHTMLElement2 *iface, short *p)
392 HTMLElement *This = HTMLELEM2_THIS(iface);
393 FIXME("(%p)->(%p)\n", This, p);
397 static HRESULT WINAPI HTMLElement2_focus(IHTMLElement2 *iface)
399 HTMLElement *This = HTMLELEM2_THIS(iface);
400 FIXME("(%p)\n", This);
404 static HRESULT WINAPI HTMLElement2_put_accessKey(IHTMLElement2 *iface, BSTR v)
406 HTMLElement *This = HTMLELEM2_THIS(iface);
407 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
411 static HRESULT WINAPI HTMLElement2_get_accessKey(IHTMLElement2 *iface, BSTR *p)
413 HTMLElement *This = HTMLELEM2_THIS(iface);
414 FIXME("(%p)->(%p)\n", This, p);
418 static HRESULT WINAPI HTMLElement2_put_onblur(IHTMLElement2 *iface, VARIANT v)
420 HTMLElement *This = HTMLELEM2_THIS(iface);
421 FIXME("(%p)->()\n", This);
425 static HRESULT WINAPI HTMLElement2_get_onblur(IHTMLElement2 *iface, VARIANT *p)
427 HTMLElement *This = HTMLELEM2_THIS(iface);
428 FIXME("(%p)->(%p)\n", This, p);
432 static HRESULT WINAPI HTMLElement2_put_onfocus(IHTMLElement2 *iface, VARIANT v)
434 HTMLElement *This = HTMLELEM2_THIS(iface);
435 FIXME("(%p)->()\n", This);
439 static HRESULT WINAPI HTMLElement2_get_onfocus(IHTMLElement2 *iface, VARIANT *p)
441 HTMLElement *This = HTMLELEM2_THIS(iface);
442 FIXME("(%p)->(%p)\n", This, p);
446 static HRESULT WINAPI HTMLElement2_put_onresize(IHTMLElement2 *iface, VARIANT v)
448 HTMLElement *This = HTMLELEM2_THIS(iface);
449 FIXME("(%p)->()\n", This);
453 static HRESULT WINAPI HTMLElement2_get_onresize(IHTMLElement2 *iface, VARIANT *p)
455 HTMLElement *This = HTMLELEM2_THIS(iface);
456 FIXME("(%p)->(%p)\n", This, p);
460 static HRESULT WINAPI HTMLElement2_blur(IHTMLElement2 *iface)
462 HTMLElement *This = HTMLELEM2_THIS(iface);
463 FIXME("(%p)\n", This);
467 static HRESULT WINAPI HTMLElement2_addFilter(IHTMLElement2 *iface, IUnknown *pUnk)
469 HTMLElement *This = HTMLELEM2_THIS(iface);
470 FIXME("(%p)->(%p)\n", This, pUnk);
474 static HRESULT WINAPI HTMLElement2_removeFilter(IHTMLElement2 *iface, IUnknown *pUnk)
476 HTMLElement *This = HTMLELEM2_THIS(iface);
477 FIXME("(%p)->(%p)\n", This, pUnk);
481 static HRESULT WINAPI HTMLElement2_get_clientHeight(IHTMLElement2 *iface, long *p)
483 HTMLElement *This = HTMLELEM2_THIS(iface);
484 FIXME("(%p)->(%p)\n", This, p);
488 static HRESULT WINAPI HTMLElement2_get_clientWidth(IHTMLElement2 *iface, long *p)
490 HTMLElement *This = HTMLELEM2_THIS(iface);
491 FIXME("(%p)->(%p)\n", This, p);
495 static HRESULT WINAPI HTMLElement2_get_clientTop(IHTMLElement2 *iface, long *p)
497 HTMLElement *This = HTMLELEM2_THIS(iface);
498 FIXME("(%p)->(%p)\n", This, p);
502 static HRESULT WINAPI HTMLElement2_get_clientLeft(IHTMLElement2 *iface, long *p)
504 HTMLElement *This = HTMLELEM2_THIS(iface);
505 FIXME("(%p)->(%p)\n", This, p);
509 static HRESULT WINAPI HTMLElement2_attachEvent(IHTMLElement2 *iface, BSTR event,
510 IDispatch *pDisp, VARIANT_BOOL *pfResult)
512 HTMLElement *This = HTMLELEM2_THIS(iface);
513 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(event), pDisp, pfResult);
517 static HRESULT WINAPI HTMLElement2_detachEvent(IHTMLElement2 *iface, BSTR event, IDispatch *pDisp)
519 HTMLElement *This = HTMLELEM2_THIS(iface);
520 FIXME("(%p)->(%s %p)\n", This, debugstr_w(event), pDisp);
524 static HRESULT WINAPI HTMLElement2_get_readyState(IHTMLElement2 *iface, VARIANT *p)
526 HTMLElement *This = HTMLELEM2_THIS(iface);
527 FIXME("(%p)->(%p)\n", This, p);
531 static HRESULT WINAPI HTMLElement2_put_onreadystatechange(IHTMLElement2 *iface, VARIANT v)
533 HTMLElement *This = HTMLELEM2_THIS(iface);
534 FIXME("(%p)->()\n", This);
538 static HRESULT WINAPI HTMLElement2_get_onreadystatechange(IHTMLElement2 *iface, VARIANT *p)
540 HTMLElement *This = HTMLELEM2_THIS(iface);
541 FIXME("(%p)->(%p)\n", This, p);
545 static HRESULT WINAPI HTMLElement2_put_onrowsdelete(IHTMLElement2 *iface, VARIANT v)
547 HTMLElement *This = HTMLELEM2_THIS(iface);
548 FIXME("(%p)->()\n", This);
552 static HRESULT WINAPI HTMLElement2_get_onrowsdelete(IHTMLElement2 *iface, VARIANT *p)
554 HTMLElement *This = HTMLELEM2_THIS(iface);
555 FIXME("(%p)->(%p)\n", This, p);
559 static HRESULT WINAPI HTMLElement2_put_onrowsinserted(IHTMLElement2 *iface, VARIANT v)
561 HTMLElement *This = HTMLELEM2_THIS(iface);
562 FIXME("(%p)->()\n", This);
566 static HRESULT WINAPI HTMLElement2_get_onrowsinserted(IHTMLElement2 *iface, VARIANT *p)
568 HTMLElement *This = HTMLELEM2_THIS(iface);
569 FIXME("(%p)->(%p)\n", This, p);
573 static HRESULT WINAPI HTMLElement2_put_oncellchange(IHTMLElement2 *iface, VARIANT v)
575 HTMLElement *This = HTMLELEM2_THIS(iface);
576 FIXME("(%p)->()\n", This);
580 static HRESULT WINAPI HTMLElement2_get_oncellchange(IHTMLElement2 *iface, VARIANT *p)
582 HTMLElement *This = HTMLELEM2_THIS(iface);
583 FIXME("(%p)->(%p)\n", This, p);
587 static HRESULT WINAPI HTMLElement2_put_dir(IHTMLElement2 *iface, BSTR v)
589 HTMLElement *This = HTMLELEM2_THIS(iface);
590 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
594 static HRESULT WINAPI HTMLElement2_get_dir(IHTMLElement2 *iface, BSTR *p)
596 HTMLElement *This = HTMLELEM2_THIS(iface);
598 TRACE("(%p)->(%p)\n", This, p);
606 nsAString_Init(&dir_str, NULL);
608 nsres = nsIDOMHTMLElement_GetDir(This->nselem, &dir_str);
609 if(NS_SUCCEEDED(nsres)) {
610 const PRUnichar *dir;
611 nsAString_GetData(&dir_str, &dir);
613 *p = SysAllocString(dir);
615 ERR("GetDir failed: %08x\n", nsres);
618 nsAString_Finish(&dir_str);
621 TRACE("ret %s\n", debugstr_w(*p));
625 static HRESULT WINAPI HTMLElement2_createControlRange(IHTMLElement2 *iface, IDispatch **range)
627 HTMLElement *This = HTMLELEM2_THIS(iface);
628 FIXME("(%p)->(%p)\n", This, range);
632 static HRESULT WINAPI HTMLElement2_get_scrollHeight(IHTMLElement2 *iface, long *p)
634 HTMLElement *This = HTMLELEM2_THIS(iface);
635 FIXME("(%p)->(%p)\n", This, p);
639 static HRESULT WINAPI HTMLElement2_get_scrollWidth(IHTMLElement2 *iface, long *p)
641 HTMLElement *This = HTMLELEM2_THIS(iface);
642 FIXME("(%p)->(%p)\n", This, p);
646 static HRESULT WINAPI HTMLElement2_put_scrollTop(IHTMLElement2 *iface, long v)
648 HTMLElement *This = HTMLELEM2_THIS(iface);
649 nsIDOMNSHTMLElement *nselem;
652 TRACE("(%p)->(%ld)\n", This, v);
655 FIXME("NULL nselem\n");
659 nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
660 if(NS_SUCCEEDED(nsres)) {
661 nsIDOMNSHTMLElement_SetScrollTop(nselem, v);
662 nsIDOMNSHTMLElement_Release(nselem);
664 ERR("Could not get nsIDOMNSHTMLElement interface: %08x\n", nsres);
670 static HRESULT WINAPI HTMLElement2_get_scrollTop(IHTMLElement2 *iface, long *p)
672 HTMLElement *This = HTMLELEM2_THIS(iface);
673 FIXME("(%p)->(%p)\n", This, p);
677 static HRESULT WINAPI HTMLElement2_put_scrollLeft(IHTMLElement2 *iface, long v)
679 HTMLElement *This = HTMLELEM2_THIS(iface);
680 nsIDOMNSHTMLElement *nselem;
683 TRACE("(%p)->(%ld)\n", This, v);
686 FIXME("NULL nselem\n");
690 nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
691 if(NS_SUCCEEDED(nsres)) {
692 nsIDOMNSHTMLElement_SetScrollLeft(nselem, v);
693 nsIDOMNSHTMLElement_Release(nselem);
695 ERR("Could not get nsIDOMNSHTMLElement interface: %08x\n", nsres);
701 static HRESULT WINAPI HTMLElement2_get_scrollLeft(IHTMLElement2 *iface, long *p)
703 HTMLElement *This = HTMLELEM2_THIS(iface);
704 FIXME("(%p)->(%p)\n", This, p);
708 static HRESULT WINAPI HTMLElement2_clearAttributes(IHTMLElement2 *iface)
710 HTMLElement *This = HTMLELEM2_THIS(iface);
711 FIXME("(%p)\n", This);
715 static HRESULT WINAPI HTMLElement2_mergeAttributes(IHTMLElement2 *iface, IHTMLElement *mergeThis)
717 HTMLElement *This = HTMLELEM2_THIS(iface);
718 FIXME("(%p)->(%p)\n", This, mergeThis);
722 static HRESULT WINAPI HTMLElement2_put_oncontextmenu(IHTMLElement2 *iface, VARIANT v)
724 HTMLElement *This = HTMLELEM2_THIS(iface);
725 FIXME("(%p)->()\n", This);
729 static HRESULT WINAPI HTMLElement2_get_oncontextmenu(IHTMLElement2 *iface, VARIANT *p)
731 HTMLElement *This = HTMLELEM2_THIS(iface);
732 FIXME("(%p)->(%p)\n", This, p);
736 static HRESULT WINAPI HTMLElement2_insertAdjecentElement(IHTMLElement2 *iface, BSTR where,
737 IHTMLElement *insertedElement, IHTMLElement **inserted)
739 HTMLElement *This = HTMLELEM2_THIS(iface);
740 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(where), insertedElement, inserted);
744 static HRESULT WINAPI HTMLElement2_applyElement(IHTMLElement2 *iface, IHTMLElement *apply,
745 BSTR where, IHTMLElement **applied)
747 HTMLElement *This = HTMLELEM2_THIS(iface);
748 FIXME("(%p)->(%p %s %p)\n", This, apply, debugstr_w(where), applied);
752 static HRESULT WINAPI HTMLElement2_getAdjecentText(IHTMLElement2 *iface, BSTR where, BSTR *text)
754 HTMLElement *This = HTMLELEM2_THIS(iface);
755 FIXME("(%p)->(%s %p)\n", This, debugstr_w(where), text);
759 static HRESULT WINAPI HTMLElement2_replaceAdjecentText(IHTMLElement2 *iface, BSTR where,
760 BSTR newText, BSTR *oldText)
762 HTMLElement *This = HTMLELEM2_THIS(iface);
763 FIXME("(%p)->(%s %s %p)\n", This, debugstr_w(where), debugstr_w(newText), oldText);
767 static HRESULT WINAPI HTMLElement2_get_canHandleChildren(IHTMLElement2 *iface, VARIANT_BOOL *p)
769 HTMLElement *This = HTMLELEM2_THIS(iface);
770 FIXME("(%p)->(%p)\n", This, p);
774 static HRESULT WINAPI HTMLElement2_addBehavior(IHTMLElement2 *iface, BSTR bstrUrl,
775 VARIANT *pvarFactory, long *pCookie)
777 HTMLElement *This = HTMLELEM2_THIS(iface);
778 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(bstrUrl), pvarFactory, pCookie);
782 static HRESULT WINAPI HTMLElement2_removeBehavior(IHTMLElement2 *iface, long cookie,
783 VARIANT_BOOL *pfResult)
785 HTMLElement *This = HTMLELEM2_THIS(iface);
786 FIXME("(%p)->(%ld %p)\n", This, cookie, pfResult);
790 static HRESULT WINAPI HTMLElement2_get_runtimeStyle(IHTMLElement2 *iface, IHTMLStyle **p)
792 HTMLElement *This = HTMLELEM2_THIS(iface);
793 FIXME("(%p)->(%p)\n", This, p);
797 static HRESULT WINAPI HTMLElement2_get_behaviorUrns(IHTMLElement2 *iface, IDispatch **p)
799 HTMLElement *This = HTMLELEM2_THIS(iface);
800 FIXME("(%p)->(%p)\n", This, p);
804 static HRESULT WINAPI HTMLElement2_put_tagUrn(IHTMLElement2 *iface, BSTR v)
806 HTMLElement *This = HTMLELEM2_THIS(iface);
807 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
811 static HRESULT WINAPI HTMLElement2_get_tagUrn(IHTMLElement2 *iface, BSTR *p)
813 HTMLElement *This = HTMLELEM2_THIS(iface);
814 FIXME("(%p)->(%p)\n", This, p);
818 static HRESULT WINAPI HTMLElement2_put_onbeforeeditfocus(IHTMLElement2 *iface, VARIANT vv)
820 HTMLElement *This = HTMLELEM2_THIS(iface);
821 FIXME("(%p)->()\n", This);
825 static HRESULT WINAPI HTMLElement2_get_onbeforeeditfocus(IHTMLElement2 *iface, VARIANT *p)
827 HTMLElement *This = HTMLELEM2_THIS(iface);
828 FIXME("(%p)->(%p)\n", This, p);
832 static HRESULT WINAPI HTMLElement2_get_readyStateValue(IHTMLElement2 *iface, long *p)
834 HTMLElement *This = HTMLELEM2_THIS(iface);
835 FIXME("(%p)->(%p)\n", This, p);
839 static HRESULT WINAPI HTMLElement2_getElementByTagName(IHTMLElement2 *iface, BSTR v,
840 IHTMLElementCollection **pelColl)
842 HTMLElement *This = HTMLELEM2_THIS(iface);
843 FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
847 #undef HTMLELEM2_THIS
849 static const IHTMLElement2Vtbl HTMLElement2Vtbl = {
850 HTMLElement2_QueryInterface,
852 HTMLElement2_Release,
853 HTMLElement2_GetTypeInfoCount,
854 HTMLElement2_GetTypeInfo,
855 HTMLElement2_GetIDsOfNames,
857 HTMLElement2_get_scopeName,
858 HTMLElement2_setCapture,
859 HTMLElement2_releaseCapture,
860 HTMLElement2_put_onlosecapture,
861 HTMLElement2_get_onlosecapture,
862 HTMLElement2_componentFromPoint,
863 HTMLElement2_doScroll,
864 HTMLElement2_put_onscroll,
865 HTMLElement2_get_onscroll,
866 HTMLElement2_put_ondrag,
867 HTMLElement2_get_ondrag,
868 HTMLElement2_put_ondragend,
869 HTMLElement2_get_ondragend,
870 HTMLElement2_put_ondragenter,
871 HTMLElement2_get_ondragenter,
872 HTMLElement2_put_ondragover,
873 HTMLElement2_get_ondragover,
874 HTMLElement2_put_ondragleave,
875 HTMLElement2_get_ondragleave,
876 HTMLElement2_put_ondrop,
877 HTMLElement2_get_ondrop,
878 HTMLElement2_put_onbeforecut,
879 HTMLElement2_get_onbeforecut,
880 HTMLElement2_put_oncut,
881 HTMLElement2_get_oncut,
882 HTMLElement2_put_onbeforecopy,
883 HTMLElement2_get_onbeforecopy,
884 HTMLElement2_put_oncopy,
885 HTMLElement2_get_oncopy,
886 HTMLElement2_put_onbeforepaste,
887 HTMLElement2_get_onbeforepaste,
888 HTMLElement2_put_onpaste,
889 HTMLElement2_get_onpaste,
890 HTMLElement2_get_currentStyle,
891 HTMLElement2_put_onpropertychange,
892 HTMLElement2_get_onpropertychange,
893 HTMLElement2_getClientRects,
894 HTMLElement2_getBoundingClientRect,
895 HTMLElement2_setExpression,
896 HTMLElement2_getExpression,
897 HTMLElement2_removeExpression,
898 HTMLElement2_put_tabIndex,
899 HTMLElement2_get_tabIndex,
901 HTMLElement2_put_accessKey,
902 HTMLElement2_get_accessKey,
903 HTMLElement2_put_onblur,
904 HTMLElement2_get_onblur,
905 HTMLElement2_put_onfocus,
906 HTMLElement2_get_onfocus,
907 HTMLElement2_put_onresize,
908 HTMLElement2_get_onresize,
910 HTMLElement2_addFilter,
911 HTMLElement2_removeFilter,
912 HTMLElement2_get_clientHeight,
913 HTMLElement2_get_clientWidth,
914 HTMLElement2_get_clientTop,
915 HTMLElement2_get_clientLeft,
916 HTMLElement2_attachEvent,
917 HTMLElement2_detachEvent,
918 HTMLElement2_get_readyState,
919 HTMLElement2_put_onreadystatechange,
920 HTMLElement2_get_onreadystatechange,
921 HTMLElement2_put_onrowsdelete,
922 HTMLElement2_get_onrowsdelete,
923 HTMLElement2_put_onrowsinserted,
924 HTMLElement2_get_onrowsinserted,
925 HTMLElement2_put_oncellchange,
926 HTMLElement2_get_oncellchange,
927 HTMLElement2_put_dir,
928 HTMLElement2_get_dir,
929 HTMLElement2_createControlRange,
930 HTMLElement2_get_scrollHeight,
931 HTMLElement2_get_scrollWidth,
932 HTMLElement2_put_scrollTop,
933 HTMLElement2_get_scrollTop,
934 HTMLElement2_put_scrollLeft,
935 HTMLElement2_get_scrollLeft,
936 HTMLElement2_clearAttributes,
937 HTMLElement2_mergeAttributes,
938 HTMLElement2_put_oncontextmenu,
939 HTMLElement2_get_oncontextmenu,
940 HTMLElement2_insertAdjecentElement,
941 HTMLElement2_applyElement,
942 HTMLElement2_getAdjecentText,
943 HTMLElement2_replaceAdjecentText,
944 HTMLElement2_get_canHandleChildren,
945 HTMLElement2_addBehavior,
946 HTMLElement2_removeBehavior,
947 HTMLElement2_get_runtimeStyle,
948 HTMLElement2_get_behaviorUrns,
949 HTMLElement2_put_tagUrn,
950 HTMLElement2_get_tagUrn,
951 HTMLElement2_put_onbeforeeditfocus,
952 HTMLElement2_get_onbeforeeditfocus,
953 HTMLElement2_get_readyStateValue,
954 HTMLElement2_getElementByTagName,
957 void HTMLElement2_Init(HTMLElement *This)
959 This->lpHTMLElement2Vtbl = &HTMLElement2Vtbl;