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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #include "wine/debug.h"
34 #include "mshtml_private.h"
36 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
39 const IHTMLInputElementVtbl *lpHTMLInputElementVtbl;
42 nsIDOMHTMLInputElement *nsinput;
45 #define HTMLINPUT(x) ((IHTMLInputElement*) &(x)->lpHTMLInputElementVtbl)
47 #define HTMLINPUT_THIS(iface) DEFINE_THIS(HTMLInputElement, HTMLInputElement, iface)
49 static HRESULT WINAPI HTMLInputElement_QueryInterface(IHTMLInputElement *iface,
50 REFIID riid, void **ppv)
52 HTMLInputElement *This = HTMLINPUT_THIS(iface);
56 if(IsEqualGUID(&IID_IUnknown, riid)) {
57 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
58 *ppv = HTMLINPUT(This);
59 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
60 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
61 *ppv = HTMLINPUT(This);
62 }else if(IsEqualGUID(&IID_IHTMLInputElement, riid)) {
63 TRACE("(%p)->(IID_IHTMLInputElement %p)\n", This, ppv);
64 *ppv = HTMLINPUT(This);
65 }else if(IsEqualGUID(&IID_IHTMLElement, riid)) {
66 TRACE("(%p)->(IID_IHTMLElement %p)\n", This, ppv);
67 *ppv = HTMLELEM(This->element);
68 }else if(IsEqualGUID(&IID_IHTMLDOMNode, riid)) {
69 TRACE("(%p)->(IID_IHTMLDOMNode %p)\n", This, ppv);
70 *ppv = HTMLDOMNODE(This->element->node);
74 IUnknown_AddRef((IUnknown*)*ppv);
78 WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
82 static ULONG WINAPI HTMLInputElement_AddRef(IHTMLInputElement *iface)
84 HTMLInputElement *This = HTMLINPUT_THIS(iface);
86 TRACE("(%p)\n", This);
88 return IHTMLDocument2_AddRef(HTMLDOC(This->element->node->doc));
91 static ULONG WINAPI HTMLInputElement_Release(IHTMLInputElement *iface)
93 HTMLInputElement *This = HTMLINPUT_THIS(iface);
95 TRACE("(%p)\n", This);
97 return IHTMLDocument2_Release(HTMLDOC(This->element->node->doc));
100 static HRESULT WINAPI HTMLInputElement_GetTypeInfoCount(IHTMLInputElement *iface, UINT *pctinfo)
102 HTMLInputElement *This = HTMLINPUT_THIS(iface);
103 FIXME("(%p)->(%p)\n", This, pctinfo);
107 static HRESULT WINAPI HTMLInputElement_GetTypeInfo(IHTMLInputElement *iface, UINT iTInfo,
108 LCID lcid, ITypeInfo **ppTInfo)
110 HTMLInputElement *This = HTMLINPUT_THIS(iface);
111 FIXME("(%p)->(%u %lu %p)\n", This, iTInfo, lcid, ppTInfo);
115 static HRESULT WINAPI HTMLInputElement_GetIDsOfNames(IHTMLInputElement *iface, REFIID riid,
116 LPOLESTR *rgszNames, UINT cNames,
117 LCID lcid, DISPID *rgDispId)
119 HTMLInputElement *This = HTMLINPUT_THIS(iface);
120 FIXME("(%p)->(%s %p %u %lu %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
125 static HRESULT WINAPI HTMLInputElement_Invoke(IHTMLInputElement *iface, DISPID dispIdMember,
126 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
127 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
129 HTMLInputElement *This = HTMLINPUT_THIS(iface);
130 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
131 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
135 static HRESULT WINAPI HTMLInputElement_put_type(IHTMLInputElement *iface, BSTR v)
137 HTMLInputElement *This = HTMLINPUT_THIS(iface);
138 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
142 static HRESULT WINAPI HTMLInputElement_get_type(IHTMLInputElement *iface, BSTR *p)
144 HTMLInputElement *This = HTMLINPUT_THIS(iface);
146 const PRUnichar *type;
149 TRACE("(%p)->(%p)\n", This, p);
151 nsAString_Init(&type_str, NULL);
152 nsres = nsIDOMHTMLInputElement_GetType(This->nsinput, &type_str);
154 if(NS_SUCCEEDED(nsres)) {
155 nsAString_GetData(&type_str, &type, NULL);
156 *p = SysAllocString(type);
158 ERR("GetType failed: %08lx\n", nsres);
161 nsAString_Finish(&type_str);
163 TRACE("type=%s\n", debugstr_w(*p));
167 static HRESULT WINAPI HTMLInputElement_put_value(IHTMLInputElement *iface, BSTR v)
169 HTMLInputElement *This = HTMLINPUT_THIS(iface);
170 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
174 static HRESULT WINAPI HTMLInputElement_get_value(IHTMLInputElement *iface, BSTR *p)
176 HTMLInputElement *This = HTMLINPUT_THIS(iface);
178 const PRUnichar *value;
181 TRACE("(%p)->(%p)\n", This, p);
183 nsAString_Init(&value_str, NULL);
185 nsres = nsIDOMHTMLInputElement_GetValue(This->nsinput, &value_str);
186 if(NS_SUCCEEDED(nsres)) {
187 nsAString_GetData(&value_str, &value, NULL);
188 *p = SysAllocString(value);
190 ERR("GetValue failed: %08lx\n", nsres);
193 nsAString_Finish(&value_str);
195 TRACE("value=%s\n", debugstr_w(value));
199 static HRESULT WINAPI HTMLInputElement_put_name(IHTMLInputElement *iface, BSTR v)
201 HTMLInputElement *This = HTMLINPUT_THIS(iface);
202 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
206 static HRESULT WINAPI HTMLInputElement_get_name(IHTMLInputElement *iface, BSTR *p)
208 HTMLInputElement *This = HTMLINPUT_THIS(iface);
210 const PRUnichar *name;
213 TRACE("(%p)->(%p)\n", This, p);
215 nsAString_Init(&name_str, NULL);
217 nsres = nsIDOMHTMLInputElement_GetName(This->nsinput, &name_str);
218 if(NS_SUCCEEDED(nsres)) {
219 nsAString_GetData(&name_str, &name, NULL);
220 *p = SysAllocString(name);
222 ERR("GetName failed: %08lx\n", nsres);
226 nsAString_Finish(&name_str);
228 TRACE("name=%s\n", debugstr_w(*p));
232 static HRESULT WINAPI HTMLInputElement_put_status(IHTMLInputElement *iface, VARIANT_BOOL v)
234 HTMLInputElement *This = HTMLINPUT_THIS(iface);
235 FIXME("(%p)->(%x)\n", This, v);
239 static HRESULT WINAPI HTMLInputElement_get_status(IHTMLInputElement *iface, VARIANT_BOOL *p)
241 HTMLInputElement *This = HTMLINPUT_THIS(iface);
242 FIXME("(%p)->(%p)\n", This, p);
246 static HRESULT WINAPI HTMLInputElement_put_disabled(IHTMLInputElement *iface, VARIANT_BOOL v)
248 HTMLInputElement *This = HTMLINPUT_THIS(iface);
249 FIXME("(%p)->(%x)\n", This, v);
253 static HRESULT WINAPI HTMLInputElement_get_disabled(IHTMLInputElement *iface, VARIANT_BOOL *p)
255 HTMLInputElement *This = HTMLINPUT_THIS(iface);
256 FIXME("(%p)->(%p)\n", This, p);
260 static HRESULT WINAPI HTMLInputElement_get_form(IHTMLInputElement *iface, IHTMLFormElement **p)
262 HTMLInputElement *This = HTMLINPUT_THIS(iface);
263 FIXME("(%p)->(%p)\n", This, p);
267 static HRESULT WINAPI HTMLInputElement_put_size(IHTMLInputElement *iface, long v)
269 HTMLInputElement *This = HTMLINPUT_THIS(iface);
270 FIXME("(%p)->(%ld)\n", This, v);
274 static HRESULT WINAPI HTMLInputElement_get_size(IHTMLInputElement *iface, long *p)
276 HTMLInputElement *This = HTMLINPUT_THIS(iface);
277 FIXME("(%p)->(%p)\n", This, p);
281 static HRESULT WINAPI HTMLInputElement_put_maxLength(IHTMLInputElement *iface, long v)
283 HTMLInputElement *This = HTMLINPUT_THIS(iface);
284 FIXME("(%p)->(%ld)\n", This, v);
288 static HRESULT WINAPI HTMLInputElement_get_maxLength(IHTMLInputElement *iface, long *p)
290 HTMLInputElement *This = HTMLINPUT_THIS(iface);
291 FIXME("(%p)->(%p)\n", This, p);
295 static HRESULT WINAPI HTMLInputElement_select(IHTMLInputElement *iface)
297 HTMLInputElement *This = HTMLINPUT_THIS(iface);
298 FIXME("(%p)\n", This);
302 static HRESULT WINAPI HTMLInputElement_put_onchange(IHTMLInputElement *iface, VARIANT v)
304 HTMLInputElement *This = HTMLINPUT_THIS(iface);
305 FIXME("(%p)->()\n", This);
309 static HRESULT WINAPI HTMLInputElement_get_onchange(IHTMLInputElement *iface, VARIANT *p)
311 HTMLInputElement *This = HTMLINPUT_THIS(iface);
312 FIXME("(%p)->(%p)\n", This, p);
316 static HRESULT WINAPI HTMLInputElement_put_onselect(IHTMLInputElement *iface, VARIANT v)
318 HTMLInputElement *This = HTMLINPUT_THIS(iface);
319 FIXME("(%p)->()\n", This);
323 static HRESULT WINAPI HTMLInputElement_get_onselect(IHTMLInputElement *iface, VARIANT *p)
325 HTMLInputElement *This = HTMLINPUT_THIS(iface);
326 FIXME("(%p)->(%p)\n", This, p);
330 static HRESULT WINAPI HTMLInputElement_put_defaultValue(IHTMLInputElement *iface, BSTR v)
332 HTMLInputElement *This = HTMLINPUT_THIS(iface);
333 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
337 static HRESULT WINAPI HTMLInputElement_get_defaultValue(IHTMLInputElement *iface, BSTR *p)
339 HTMLInputElement *This = HTMLINPUT_THIS(iface);
340 FIXME("(%p)->(%p)\n", This, p);
344 static HRESULT WINAPI HTMLInputElement_put_readOnly(IHTMLInputElement *iface, VARIANT_BOOL v)
346 HTMLInputElement *This = HTMLINPUT_THIS(iface);
347 FIXME("(%p)->(%x)\n", This, v);
351 static HRESULT WINAPI HTMLInputElement_get_readOnly(IHTMLInputElement *iface, VARIANT_BOOL *p)
353 HTMLInputElement *This = HTMLINPUT_THIS(iface);
354 FIXME("(%p)->(%p)\n", This, p);
358 static HRESULT WINAPI HTMLInputElement_createTextRange(IHTMLInputElement *iface, IHTMLTxtRange **range)
360 HTMLInputElement *This = HTMLINPUT_THIS(iface);
361 FIXME("(%p)->(%p)\n", This, range);
365 static HRESULT WINAPI HTMLInputElement_put_indeterminate(IHTMLInputElement *iface, VARIANT_BOOL v)
367 HTMLInputElement *This = HTMLINPUT_THIS(iface);
368 FIXME("(%p)->(%x)\n", This, v);
372 static HRESULT WINAPI HTMLInputElement_get_indeterminate(IHTMLInputElement *iface, VARIANT_BOOL *p)
374 HTMLInputElement *This = HTMLINPUT_THIS(iface);
375 FIXME("(%p)->(%p)\n", This, p);
379 static HRESULT WINAPI HTMLInputElement_put_defaultChecked(IHTMLInputElement *iface, VARIANT_BOOL v)
381 HTMLInputElement *This = HTMLINPUT_THIS(iface);
382 FIXME("(%p)->(%x)\n", This, v);
386 static HRESULT WINAPI HTMLInputElement_get_defaultChecked(IHTMLInputElement *iface, VARIANT_BOOL *p)
388 HTMLInputElement *This = HTMLINPUT_THIS(iface);
389 FIXME("(%p)->(%p)\n", This, p);
393 static HRESULT WINAPI HTMLInputElement_put_checked(IHTMLInputElement *iface, VARIANT_BOOL v)
395 HTMLInputElement *This = HTMLINPUT_THIS(iface);
396 FIXME("(%p)->(%x)\n", This, v);
400 static HRESULT WINAPI HTMLInputElement_get_checked(IHTMLInputElement *iface, VARIANT_BOOL *p)
402 HTMLInputElement *This = HTMLINPUT_THIS(iface);
406 TRACE("(%p)->(%p)\n", This, p);
408 nsres = nsIDOMHTMLInputElement_GetChecked(This->nsinput, &checked);
409 if(NS_FAILED(nsres)) {
410 ERR("GetChecked failed: %08lx\n", nsres);
414 *p = checked ? VARIANT_TRUE : VARIANT_FALSE;
415 TRACE("checked=%x\n", *p);
419 static HRESULT WINAPI HTMLInputElement_put_border(IHTMLInputElement *iface, VARIANT v)
421 HTMLInputElement *This = HTMLINPUT_THIS(iface);
422 FIXME("(%p)->()\n", This);
426 static HRESULT WINAPI HTMLInputElement_get_border(IHTMLInputElement *iface, VARIANT *p)
428 HTMLInputElement *This = HTMLINPUT_THIS(iface);
429 FIXME("(%p)->(%p)\n", This, p);
433 static HRESULT WINAPI HTMLInputElement_put_vspace(IHTMLInputElement *iface, long v)
435 HTMLInputElement *This = HTMLINPUT_THIS(iface);
436 FIXME("(%p)->(%ld)\n", This, v);
440 static HRESULT WINAPI HTMLInputElement_get_vspace(IHTMLInputElement *iface, long *p)
442 HTMLInputElement *This = HTMLINPUT_THIS(iface);
443 FIXME("(%p)->(%p)\n", This, p);
447 static HRESULT WINAPI HTMLInputElement_put_hspace(IHTMLInputElement *iface, long v)
449 HTMLInputElement *This = HTMLINPUT_THIS(iface);
450 FIXME("(%p)->(%ld)\n", This, v);
454 static HRESULT WINAPI HTMLInputElement_get_hspace(IHTMLInputElement *iface, long *p)
456 HTMLInputElement *This = HTMLINPUT_THIS(iface);
457 FIXME("(%p)->(%p)\n", This, p);
461 static HRESULT WINAPI HTMLInputElement_put_alt(IHTMLInputElement *iface, BSTR v)
463 HTMLInputElement *This = HTMLINPUT_THIS(iface);
464 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
468 static HRESULT WINAPI HTMLInputElement_get_alt(IHTMLInputElement *iface, BSTR *p)
470 HTMLInputElement *This = HTMLINPUT_THIS(iface);
471 FIXME("(%p)->(%p)\n", This, p);
475 static HRESULT WINAPI HTMLInputElement_put_src(IHTMLInputElement *iface, BSTR v)
477 HTMLInputElement *This = HTMLINPUT_THIS(iface);
478 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
482 static HRESULT WINAPI HTMLInputElement_get_src(IHTMLInputElement *iface, BSTR *p)
484 HTMLInputElement *This = HTMLINPUT_THIS(iface);
485 FIXME("(%p)->(%p)\n", This, p);
489 static HRESULT WINAPI HTMLInputElement_put_lowsrc(IHTMLInputElement *iface, BSTR v)
491 HTMLInputElement *This = HTMLINPUT_THIS(iface);
492 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
496 static HRESULT WINAPI HTMLInputElement_get_lowsrc(IHTMLInputElement *iface, BSTR *p)
498 HTMLInputElement *This = HTMLINPUT_THIS(iface);
499 FIXME("(%p)->(%p)\n", This, p);
503 static HRESULT WINAPI HTMLInputElement_put_vrml(IHTMLInputElement *iface, BSTR v)
505 HTMLInputElement *This = HTMLINPUT_THIS(iface);
506 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
510 static HRESULT WINAPI HTMLInputElement_get_vrml(IHTMLInputElement *iface, BSTR *p)
512 HTMLInputElement *This = HTMLINPUT_THIS(iface);
513 FIXME("(%p)->(%p)\n", This, p);
517 static HRESULT WINAPI HTMLInputElement_put_dynsrc(IHTMLInputElement *iface, BSTR v)
519 HTMLInputElement *This = HTMLINPUT_THIS(iface);
520 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
524 static HRESULT WINAPI HTMLInputElement_get_dynsrc(IHTMLInputElement *iface, BSTR *p)
526 HTMLInputElement *This = HTMLINPUT_THIS(iface);
527 FIXME("(%p)->(%p)\n", This, p);
531 static HRESULT WINAPI HTMLInputElement_get_readyState(IHTMLInputElement *iface, BSTR *p)
533 HTMLInputElement *This = HTMLINPUT_THIS(iface);
534 FIXME("(%p)->(%p)\n", This, p);
538 static HRESULT WINAPI HTMLInputElement_get_complete(IHTMLInputElement *iface, VARIANT_BOOL *p)
540 HTMLInputElement *This = HTMLINPUT_THIS(iface);
541 FIXME("(%p)->(%p)\n", This, p);
545 static HRESULT WINAPI HTMLInputElement_put_loop(IHTMLInputElement *iface, VARIANT v)
547 HTMLInputElement *This = HTMLINPUT_THIS(iface);
548 FIXME("(%p)->()\n", This);
552 static HRESULT WINAPI HTMLInputElement_get_loop(IHTMLInputElement *iface, VARIANT *p)
554 HTMLInputElement *This = HTMLINPUT_THIS(iface);
555 FIXME("(%p)->(%p)\n", This, p);
559 static HRESULT WINAPI HTMLInputElement_put_align(IHTMLInputElement *iface, BSTR v)
561 HTMLInputElement *This = HTMLINPUT_THIS(iface);
562 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
566 static HRESULT WINAPI HTMLInputElement_get_align(IHTMLInputElement *iface, BSTR *p)
568 HTMLInputElement *This = HTMLINPUT_THIS(iface);
569 FIXME("(%p)->(%p)\n", This, p);
573 static HRESULT WINAPI HTMLInputElement_put_onload(IHTMLInputElement *iface, VARIANT v)
575 HTMLInputElement *This = HTMLINPUT_THIS(iface);
576 FIXME("(%p)->()\n", This);
580 static HRESULT WINAPI HTMLInputElement_get_onload(IHTMLInputElement *iface, VARIANT *p)
582 HTMLInputElement *This = HTMLINPUT_THIS(iface);
583 FIXME("(%p)->(%p)\n", This, p);
587 static HRESULT WINAPI HTMLInputElement_put_onerror(IHTMLInputElement *iface, VARIANT v)
589 HTMLInputElement *This = HTMLINPUT_THIS(iface);
590 FIXME("(%p)->()\n", This);
594 static HRESULT WINAPI HTMLInputElement_get_onerror(IHTMLInputElement *iface, VARIANT *p)
596 HTMLInputElement *This = HTMLINPUT_THIS(iface);
597 FIXME("(%p)->(%p)\n", This, p);
601 static HRESULT WINAPI HTMLInputElement_put_onabort(IHTMLInputElement *iface, VARIANT v)
603 HTMLInputElement *This = HTMLINPUT_THIS(iface);
604 FIXME("(%p)->()\n", This);
608 static HRESULT WINAPI HTMLInputElement_get_onabort(IHTMLInputElement *iface, VARIANT *p)
610 HTMLInputElement *This = HTMLINPUT_THIS(iface);
611 FIXME("(%p)->(%p)\n", This, p);
615 static HRESULT WINAPI HTMLInputElement_put_width(IHTMLInputElement *iface, long v)
617 HTMLInputElement *This = HTMLINPUT_THIS(iface);
618 FIXME("(%p)->(%ld)\n", This, v);
622 static HRESULT WINAPI HTMLInputElement_get_width(IHTMLInputElement *iface, long *p)
624 HTMLInputElement *This = HTMLINPUT_THIS(iface);
625 FIXME("(%p)->(%p)\n", This, p);
629 static HRESULT WINAPI HTMLInputElement_put_height(IHTMLInputElement *iface, long v)
631 HTMLInputElement *This = HTMLINPUT_THIS(iface);
632 FIXME("(%p)->(%ld)\n", This, v);
636 static HRESULT WINAPI HTMLInputElement_get_height(IHTMLInputElement *iface, long *p)
638 HTMLInputElement *This = HTMLINPUT_THIS(iface);
639 FIXME("(%p)->(%p)\n", This, p);
643 static HRESULT WINAPI HTMLInputElement_put_start(IHTMLInputElement *iface, BSTR v)
645 HTMLInputElement *This = HTMLINPUT_THIS(iface);
646 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
650 static HRESULT WINAPI HTMLInputElement_get_start(IHTMLInputElement *iface, BSTR *p)
652 HTMLInputElement *This = HTMLINPUT_THIS(iface);
653 FIXME("(%p)->(%p)\n", This, p);
657 static void HTMLInputElement_destructor(IUnknown *iface)
659 HTMLInputElement *This = HTMLINPUT_THIS(iface);
661 nsIDOMHTMLInputElement_Release(This->nsinput);
662 HeapFree(GetProcessHeap(), 0, This);
665 #undef HTMLINPUT_THIS
667 static const IHTMLInputElementVtbl HTMLInputElementVtbl = {
668 HTMLInputElement_QueryInterface,
669 HTMLInputElement_AddRef,
670 HTMLInputElement_Release,
671 HTMLInputElement_GetTypeInfoCount,
672 HTMLInputElement_GetTypeInfo,
673 HTMLInputElement_GetIDsOfNames,
674 HTMLInputElement_Invoke,
675 HTMLInputElement_put_type,
676 HTMLInputElement_get_type,
677 HTMLInputElement_put_value,
678 HTMLInputElement_get_value,
679 HTMLInputElement_put_name,
680 HTMLInputElement_get_name,
681 HTMLInputElement_put_status,
682 HTMLInputElement_get_status,
683 HTMLInputElement_put_disabled,
684 HTMLInputElement_get_disabled,
685 HTMLInputElement_get_form,
686 HTMLInputElement_put_size,
687 HTMLInputElement_get_size,
688 HTMLInputElement_put_maxLength,
689 HTMLInputElement_get_maxLength,
690 HTMLInputElement_select,
691 HTMLInputElement_put_onchange,
692 HTMLInputElement_get_onchange,
693 HTMLInputElement_put_onselect,
694 HTMLInputElement_get_onselect,
695 HTMLInputElement_put_defaultValue,
696 HTMLInputElement_get_defaultValue,
697 HTMLInputElement_put_readOnly,
698 HTMLInputElement_get_readOnly,
699 HTMLInputElement_createTextRange,
700 HTMLInputElement_put_indeterminate,
701 HTMLInputElement_get_indeterminate,
702 HTMLInputElement_put_defaultChecked,
703 HTMLInputElement_get_defaultChecked,
704 HTMLInputElement_put_checked,
705 HTMLInputElement_get_checked,
706 HTMLInputElement_put_border,
707 HTMLInputElement_get_border,
708 HTMLInputElement_put_vspace,
709 HTMLInputElement_get_vspace,
710 HTMLInputElement_put_hspace,
711 HTMLInputElement_get_hspace,
712 HTMLInputElement_put_alt,
713 HTMLInputElement_get_alt,
714 HTMLInputElement_put_src,
715 HTMLInputElement_get_src,
716 HTMLInputElement_put_lowsrc,
717 HTMLInputElement_get_lowsrc,
718 HTMLInputElement_put_vrml,
719 HTMLInputElement_get_vrml,
720 HTMLInputElement_put_dynsrc,
721 HTMLInputElement_get_dynsrc,
722 HTMLInputElement_get_readyState,
723 HTMLInputElement_get_complete,
724 HTMLInputElement_put_loop,
725 HTMLInputElement_get_loop,
726 HTMLInputElement_put_align,
727 HTMLInputElement_get_align,
728 HTMLInputElement_put_onload,
729 HTMLInputElement_get_onload,
730 HTMLInputElement_put_onerror,
731 HTMLInputElement_get_onerror,
732 HTMLInputElement_put_onabort,
733 HTMLInputElement_get_onabort,
734 HTMLInputElement_put_width,
735 HTMLInputElement_get_width,
736 HTMLInputElement_put_height,
737 HTMLInputElement_get_height,
738 HTMLInputElement_put_start,
739 HTMLInputElement_get_start
742 void HTMLInputElement_Create(HTMLElement *element)
744 HTMLInputElement *ret = HeapAlloc(GetProcessHeap(), 0, sizeof(HTMLInputElement));
747 ret->lpHTMLInputElementVtbl = &HTMLInputElementVtbl;
748 ret->element = element;
750 nsres = nsIDOMHTMLElement_QueryInterface(element->nselem, &IID_nsIDOMHTMLInputElement,
751 (void**)&ret->nsinput);
753 ERR("Could not get nsIDOMHTMLInputElement interface: %08lx\n", nsres);
755 element->impl = (IUnknown*)HTMLINPUT(ret);
756 element->destructor = HTMLInputElement_destructor;