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
32 #include "wine/debug.h"
34 #include "mshtml_private.h"
36 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
41 const IHTMLInputElementVtbl *lpHTMLInputElementVtbl;
43 nsIDOMHTMLInputElement *nsinput;
46 #define HTMLINPUT(x) ((IHTMLInputElement*) &(x)->lpHTMLInputElementVtbl)
48 #define HTMLINPUT_THIS(iface) DEFINE_THIS(HTMLInputElement, HTMLInputElement, iface)
50 static HRESULT WINAPI HTMLInputElement_QueryInterface(IHTMLInputElement *iface,
51 REFIID riid, void **ppv)
53 HTMLInputElement *This = HTMLINPUT_THIS(iface);
58 if(IsEqualGUID(&IID_IUnknown, riid)) {
59 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
60 *ppv = HTMLINPUT(This);
61 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
62 TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
63 *ppv = HTMLINPUT(This);
64 }else if(IsEqualGUID(&IID_IHTMLInputElement, riid)) {
65 TRACE("(%p)->(IID_IHTMLInputElement %p)\n", This, ppv);
66 *ppv = HTMLINPUT(This);
70 IUnknown_AddRef((IUnknown*)*ppv);
74 hres = HTMLElement_QI(&This->element, riid, ppv);
76 WARN("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
81 static ULONG WINAPI HTMLInputElement_AddRef(IHTMLInputElement *iface)
83 HTMLInputElement *This = HTMLINPUT_THIS(iface);
85 TRACE("(%p)\n", This);
87 return IHTMLDocument2_AddRef(HTMLDOC(This->element.node.doc));
90 static ULONG WINAPI HTMLInputElement_Release(IHTMLInputElement *iface)
92 HTMLInputElement *This = HTMLINPUT_THIS(iface);
94 TRACE("(%p)\n", This);
96 return IHTMLDocument2_Release(HTMLDOC(This->element.node.doc));
99 static HRESULT WINAPI HTMLInputElement_GetTypeInfoCount(IHTMLInputElement *iface, UINT *pctinfo)
101 HTMLInputElement *This = HTMLINPUT_THIS(iface);
102 FIXME("(%p)->(%p)\n", This, pctinfo);
106 static HRESULT WINAPI HTMLInputElement_GetTypeInfo(IHTMLInputElement *iface, UINT iTInfo,
107 LCID lcid, ITypeInfo **ppTInfo)
109 HTMLInputElement *This = HTMLINPUT_THIS(iface);
110 FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
114 static HRESULT WINAPI HTMLInputElement_GetIDsOfNames(IHTMLInputElement *iface, REFIID riid,
115 LPOLESTR *rgszNames, UINT cNames,
116 LCID lcid, DISPID *rgDispId)
118 HTMLInputElement *This = HTMLINPUT_THIS(iface);
119 FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
124 static HRESULT WINAPI HTMLInputElement_Invoke(IHTMLInputElement *iface, DISPID dispIdMember,
125 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
126 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
128 HTMLInputElement *This = HTMLINPUT_THIS(iface);
129 FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
130 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
134 static HRESULT WINAPI HTMLInputElement_put_type(IHTMLInputElement *iface, BSTR v)
136 HTMLInputElement *This = HTMLINPUT_THIS(iface);
137 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
141 static HRESULT WINAPI HTMLInputElement_get_type(IHTMLInputElement *iface, BSTR *p)
143 HTMLInputElement *This = HTMLINPUT_THIS(iface);
145 const PRUnichar *type;
148 TRACE("(%p)->(%p)\n", This, p);
150 nsAString_Init(&type_str, NULL);
151 nsres = nsIDOMHTMLInputElement_GetType(This->nsinput, &type_str);
153 if(NS_SUCCEEDED(nsres)) {
154 nsAString_GetData(&type_str, &type, NULL);
155 *p = SysAllocString(type);
157 ERR("GetType failed: %08x\n", nsres);
160 nsAString_Finish(&type_str);
162 TRACE("type=%s\n", debugstr_w(*p));
166 static HRESULT WINAPI HTMLInputElement_put_value(IHTMLInputElement *iface, BSTR v)
168 HTMLInputElement *This = HTMLINPUT_THIS(iface);
169 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
173 static HRESULT WINAPI HTMLInputElement_get_value(IHTMLInputElement *iface, BSTR *p)
175 HTMLInputElement *This = HTMLINPUT_THIS(iface);
177 const PRUnichar *value = NULL;
180 TRACE("(%p)->(%p)\n", This, p);
182 nsAString_Init(&value_str, NULL);
184 nsres = nsIDOMHTMLInputElement_GetValue(This->nsinput, &value_str);
185 if(NS_SUCCEEDED(nsres)) {
186 nsAString_GetData(&value_str, &value, NULL);
187 *p = SysAllocString(value);
189 ERR("GetValue failed: %08x\n", nsres);
192 nsAString_Finish(&value_str);
194 TRACE("value=%s\n", debugstr_w(*p));
198 static HRESULT WINAPI HTMLInputElement_put_name(IHTMLInputElement *iface, BSTR v)
200 HTMLInputElement *This = HTMLINPUT_THIS(iface);
201 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
205 static HRESULT WINAPI HTMLInputElement_get_name(IHTMLInputElement *iface, BSTR *p)
207 HTMLInputElement *This = HTMLINPUT_THIS(iface);
209 const PRUnichar *name;
212 TRACE("(%p)->(%p)\n", This, p);
214 nsAString_Init(&name_str, NULL);
216 nsres = nsIDOMHTMLInputElement_GetName(This->nsinput, &name_str);
217 if(NS_SUCCEEDED(nsres)) {
218 nsAString_GetData(&name_str, &name, NULL);
219 *p = SysAllocString(name);
221 ERR("GetName failed: %08x\n", nsres);
225 nsAString_Finish(&name_str);
227 TRACE("name=%s\n", debugstr_w(*p));
231 static HRESULT WINAPI HTMLInputElement_put_status(IHTMLInputElement *iface, VARIANT_BOOL v)
233 HTMLInputElement *This = HTMLINPUT_THIS(iface);
234 FIXME("(%p)->(%x)\n", This, v);
238 static HRESULT WINAPI HTMLInputElement_get_status(IHTMLInputElement *iface, VARIANT_BOOL *p)
240 HTMLInputElement *This = HTMLINPUT_THIS(iface);
241 FIXME("(%p)->(%p)\n", This, p);
245 static HRESULT WINAPI HTMLInputElement_put_disabled(IHTMLInputElement *iface, VARIANT_BOOL v)
247 HTMLInputElement *This = HTMLINPUT_THIS(iface);
248 FIXME("(%p)->(%x)\n", This, v);
252 static HRESULT WINAPI HTMLInputElement_get_disabled(IHTMLInputElement *iface, VARIANT_BOOL *p)
254 HTMLInputElement *This = HTMLINPUT_THIS(iface);
255 FIXME("(%p)->(%p)\n", This, p);
259 static HRESULT WINAPI HTMLInputElement_get_form(IHTMLInputElement *iface, IHTMLFormElement **p)
261 HTMLInputElement *This = HTMLINPUT_THIS(iface);
262 FIXME("(%p)->(%p)\n", This, p);
266 static HRESULT WINAPI HTMLInputElement_put_size(IHTMLInputElement *iface, long v)
268 HTMLInputElement *This = HTMLINPUT_THIS(iface);
269 FIXME("(%p)->(%ld)\n", This, v);
273 static HRESULT WINAPI HTMLInputElement_get_size(IHTMLInputElement *iface, long *p)
275 HTMLInputElement *This = HTMLINPUT_THIS(iface);
276 FIXME("(%p)->(%p)\n", This, p);
280 static HRESULT WINAPI HTMLInputElement_put_maxLength(IHTMLInputElement *iface, long v)
282 HTMLInputElement *This = HTMLINPUT_THIS(iface);
283 FIXME("(%p)->(%ld)\n", This, v);
287 static HRESULT WINAPI HTMLInputElement_get_maxLength(IHTMLInputElement *iface, long *p)
289 HTMLInputElement *This = HTMLINPUT_THIS(iface);
290 FIXME("(%p)->(%p)\n", This, p);
294 static HRESULT WINAPI HTMLInputElement_select(IHTMLInputElement *iface)
296 HTMLInputElement *This = HTMLINPUT_THIS(iface);
297 FIXME("(%p)\n", This);
301 static HRESULT WINAPI HTMLInputElement_put_onchange(IHTMLInputElement *iface, VARIANT v)
303 HTMLInputElement *This = HTMLINPUT_THIS(iface);
304 FIXME("(%p)->()\n", This);
308 static HRESULT WINAPI HTMLInputElement_get_onchange(IHTMLInputElement *iface, VARIANT *p)
310 HTMLInputElement *This = HTMLINPUT_THIS(iface);
311 FIXME("(%p)->(%p)\n", This, p);
315 static HRESULT WINAPI HTMLInputElement_put_onselect(IHTMLInputElement *iface, VARIANT v)
317 HTMLInputElement *This = HTMLINPUT_THIS(iface);
318 FIXME("(%p)->()\n", This);
322 static HRESULT WINAPI HTMLInputElement_get_onselect(IHTMLInputElement *iface, VARIANT *p)
324 HTMLInputElement *This = HTMLINPUT_THIS(iface);
325 FIXME("(%p)->(%p)\n", This, p);
329 static HRESULT WINAPI HTMLInputElement_put_defaultValue(IHTMLInputElement *iface, BSTR v)
331 HTMLInputElement *This = HTMLINPUT_THIS(iface);
332 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
336 static HRESULT WINAPI HTMLInputElement_get_defaultValue(IHTMLInputElement *iface, BSTR *p)
338 HTMLInputElement *This = HTMLINPUT_THIS(iface);
339 FIXME("(%p)->(%p)\n", This, p);
343 static HRESULT WINAPI HTMLInputElement_put_readOnly(IHTMLInputElement *iface, VARIANT_BOOL v)
345 HTMLInputElement *This = HTMLINPUT_THIS(iface);
346 FIXME("(%p)->(%x)\n", This, v);
350 static HRESULT WINAPI HTMLInputElement_get_readOnly(IHTMLInputElement *iface, VARIANT_BOOL *p)
352 HTMLInputElement *This = HTMLINPUT_THIS(iface);
353 FIXME("(%p)->(%p)\n", This, p);
357 static HRESULT WINAPI HTMLInputElement_createTextRange(IHTMLInputElement *iface, IHTMLTxtRange **range)
359 HTMLInputElement *This = HTMLINPUT_THIS(iface);
360 FIXME("(%p)->(%p)\n", This, range);
364 static HRESULT WINAPI HTMLInputElement_put_indeterminate(IHTMLInputElement *iface, VARIANT_BOOL v)
366 HTMLInputElement *This = HTMLINPUT_THIS(iface);
367 FIXME("(%p)->(%x)\n", This, v);
371 static HRESULT WINAPI HTMLInputElement_get_indeterminate(IHTMLInputElement *iface, VARIANT_BOOL *p)
373 HTMLInputElement *This = HTMLINPUT_THIS(iface);
374 FIXME("(%p)->(%p)\n", This, p);
378 static HRESULT WINAPI HTMLInputElement_put_defaultChecked(IHTMLInputElement *iface, VARIANT_BOOL v)
380 HTMLInputElement *This = HTMLINPUT_THIS(iface);
381 FIXME("(%p)->(%x)\n", This, v);
385 static HRESULT WINAPI HTMLInputElement_get_defaultChecked(IHTMLInputElement *iface, VARIANT_BOOL *p)
387 HTMLInputElement *This = HTMLINPUT_THIS(iface);
388 FIXME("(%p)->(%p)\n", This, p);
392 static HRESULT WINAPI HTMLInputElement_put_checked(IHTMLInputElement *iface, VARIANT_BOOL v)
394 HTMLInputElement *This = HTMLINPUT_THIS(iface);
395 FIXME("(%p)->(%x)\n", This, v);
399 static HRESULT WINAPI HTMLInputElement_get_checked(IHTMLInputElement *iface, VARIANT_BOOL *p)
401 HTMLInputElement *This = HTMLINPUT_THIS(iface);
405 TRACE("(%p)->(%p)\n", This, p);
407 nsres = nsIDOMHTMLInputElement_GetChecked(This->nsinput, &checked);
408 if(NS_FAILED(nsres)) {
409 ERR("GetChecked failed: %08x\n", nsres);
413 *p = checked ? VARIANT_TRUE : VARIANT_FALSE;
414 TRACE("checked=%x\n", *p);
418 static HRESULT WINAPI HTMLInputElement_put_border(IHTMLInputElement *iface, VARIANT v)
420 HTMLInputElement *This = HTMLINPUT_THIS(iface);
421 FIXME("(%p)->()\n", This);
425 static HRESULT WINAPI HTMLInputElement_get_border(IHTMLInputElement *iface, VARIANT *p)
427 HTMLInputElement *This = HTMLINPUT_THIS(iface);
428 FIXME("(%p)->(%p)\n", This, p);
432 static HRESULT WINAPI HTMLInputElement_put_vspace(IHTMLInputElement *iface, long v)
434 HTMLInputElement *This = HTMLINPUT_THIS(iface);
435 FIXME("(%p)->(%ld)\n", This, v);
439 static HRESULT WINAPI HTMLInputElement_get_vspace(IHTMLInputElement *iface, long *p)
441 HTMLInputElement *This = HTMLINPUT_THIS(iface);
442 FIXME("(%p)->(%p)\n", This, p);
446 static HRESULT WINAPI HTMLInputElement_put_hspace(IHTMLInputElement *iface, long v)
448 HTMLInputElement *This = HTMLINPUT_THIS(iface);
449 FIXME("(%p)->(%ld)\n", This, v);
453 static HRESULT WINAPI HTMLInputElement_get_hspace(IHTMLInputElement *iface, long *p)
455 HTMLInputElement *This = HTMLINPUT_THIS(iface);
456 FIXME("(%p)->(%p)\n", This, p);
460 static HRESULT WINAPI HTMLInputElement_put_alt(IHTMLInputElement *iface, BSTR v)
462 HTMLInputElement *This = HTMLINPUT_THIS(iface);
463 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
467 static HRESULT WINAPI HTMLInputElement_get_alt(IHTMLInputElement *iface, BSTR *p)
469 HTMLInputElement *This = HTMLINPUT_THIS(iface);
470 FIXME("(%p)->(%p)\n", This, p);
474 static HRESULT WINAPI HTMLInputElement_put_src(IHTMLInputElement *iface, BSTR v)
476 HTMLInputElement *This = HTMLINPUT_THIS(iface);
477 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
481 static HRESULT WINAPI HTMLInputElement_get_src(IHTMLInputElement *iface, BSTR *p)
483 HTMLInputElement *This = HTMLINPUT_THIS(iface);
484 FIXME("(%p)->(%p)\n", This, p);
488 static HRESULT WINAPI HTMLInputElement_put_lowsrc(IHTMLInputElement *iface, BSTR v)
490 HTMLInputElement *This = HTMLINPUT_THIS(iface);
491 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
495 static HRESULT WINAPI HTMLInputElement_get_lowsrc(IHTMLInputElement *iface, BSTR *p)
497 HTMLInputElement *This = HTMLINPUT_THIS(iface);
498 FIXME("(%p)->(%p)\n", This, p);
502 static HRESULT WINAPI HTMLInputElement_put_vrml(IHTMLInputElement *iface, BSTR v)
504 HTMLInputElement *This = HTMLINPUT_THIS(iface);
505 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
509 static HRESULT WINAPI HTMLInputElement_get_vrml(IHTMLInputElement *iface, BSTR *p)
511 HTMLInputElement *This = HTMLINPUT_THIS(iface);
512 FIXME("(%p)->(%p)\n", This, p);
516 static HRESULT WINAPI HTMLInputElement_put_dynsrc(IHTMLInputElement *iface, BSTR v)
518 HTMLInputElement *This = HTMLINPUT_THIS(iface);
519 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
523 static HRESULT WINAPI HTMLInputElement_get_dynsrc(IHTMLInputElement *iface, BSTR *p)
525 HTMLInputElement *This = HTMLINPUT_THIS(iface);
526 FIXME("(%p)->(%p)\n", This, p);
530 static HRESULT WINAPI HTMLInputElement_get_readyState(IHTMLInputElement *iface, BSTR *p)
532 HTMLInputElement *This = HTMLINPUT_THIS(iface);
533 FIXME("(%p)->(%p)\n", This, p);
537 static HRESULT WINAPI HTMLInputElement_get_complete(IHTMLInputElement *iface, VARIANT_BOOL *p)
539 HTMLInputElement *This = HTMLINPUT_THIS(iface);
540 FIXME("(%p)->(%p)\n", This, p);
544 static HRESULT WINAPI HTMLInputElement_put_loop(IHTMLInputElement *iface, VARIANT v)
546 HTMLInputElement *This = HTMLINPUT_THIS(iface);
547 FIXME("(%p)->()\n", This);
551 static HRESULT WINAPI HTMLInputElement_get_loop(IHTMLInputElement *iface, VARIANT *p)
553 HTMLInputElement *This = HTMLINPUT_THIS(iface);
554 FIXME("(%p)->(%p)\n", This, p);
558 static HRESULT WINAPI HTMLInputElement_put_align(IHTMLInputElement *iface, BSTR v)
560 HTMLInputElement *This = HTMLINPUT_THIS(iface);
561 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
565 static HRESULT WINAPI HTMLInputElement_get_align(IHTMLInputElement *iface, BSTR *p)
567 HTMLInputElement *This = HTMLINPUT_THIS(iface);
568 FIXME("(%p)->(%p)\n", This, p);
572 static HRESULT WINAPI HTMLInputElement_put_onload(IHTMLInputElement *iface, VARIANT v)
574 HTMLInputElement *This = HTMLINPUT_THIS(iface);
575 FIXME("(%p)->()\n", This);
579 static HRESULT WINAPI HTMLInputElement_get_onload(IHTMLInputElement *iface, VARIANT *p)
581 HTMLInputElement *This = HTMLINPUT_THIS(iface);
582 FIXME("(%p)->(%p)\n", This, p);
586 static HRESULT WINAPI HTMLInputElement_put_onerror(IHTMLInputElement *iface, VARIANT v)
588 HTMLInputElement *This = HTMLINPUT_THIS(iface);
589 FIXME("(%p)->()\n", This);
593 static HRESULT WINAPI HTMLInputElement_get_onerror(IHTMLInputElement *iface, VARIANT *p)
595 HTMLInputElement *This = HTMLINPUT_THIS(iface);
596 FIXME("(%p)->(%p)\n", This, p);
600 static HRESULT WINAPI HTMLInputElement_put_onabort(IHTMLInputElement *iface, VARIANT v)
602 HTMLInputElement *This = HTMLINPUT_THIS(iface);
603 FIXME("(%p)->()\n", This);
607 static HRESULT WINAPI HTMLInputElement_get_onabort(IHTMLInputElement *iface, VARIANT *p)
609 HTMLInputElement *This = HTMLINPUT_THIS(iface);
610 FIXME("(%p)->(%p)\n", This, p);
614 static HRESULT WINAPI HTMLInputElement_put_width(IHTMLInputElement *iface, long v)
616 HTMLInputElement *This = HTMLINPUT_THIS(iface);
617 FIXME("(%p)->(%ld)\n", This, v);
621 static HRESULT WINAPI HTMLInputElement_get_width(IHTMLInputElement *iface, long *p)
623 HTMLInputElement *This = HTMLINPUT_THIS(iface);
624 FIXME("(%p)->(%p)\n", This, p);
628 static HRESULT WINAPI HTMLInputElement_put_height(IHTMLInputElement *iface, long v)
630 HTMLInputElement *This = HTMLINPUT_THIS(iface);
631 FIXME("(%p)->(%ld)\n", This, v);
635 static HRESULT WINAPI HTMLInputElement_get_height(IHTMLInputElement *iface, long *p)
637 HTMLInputElement *This = HTMLINPUT_THIS(iface);
638 FIXME("(%p)->(%p)\n", This, p);
642 static HRESULT WINAPI HTMLInputElement_put_start(IHTMLInputElement *iface, BSTR v)
644 HTMLInputElement *This = HTMLINPUT_THIS(iface);
645 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
649 static HRESULT WINAPI HTMLInputElement_get_start(IHTMLInputElement *iface, BSTR *p)
651 HTMLInputElement *This = HTMLINPUT_THIS(iface);
652 FIXME("(%p)->(%p)\n", This, p);
656 static void HTMLInputElement_destructor(IUnknown *iface)
658 HTMLInputElement *This = HTMLINPUT_THIS(iface);
660 nsIDOMHTMLInputElement_Release(This->nsinput);
664 #undef HTMLINPUT_THIS
666 static const IHTMLInputElementVtbl HTMLInputElementVtbl = {
667 HTMLInputElement_QueryInterface,
668 HTMLInputElement_AddRef,
669 HTMLInputElement_Release,
670 HTMLInputElement_GetTypeInfoCount,
671 HTMLInputElement_GetTypeInfo,
672 HTMLInputElement_GetIDsOfNames,
673 HTMLInputElement_Invoke,
674 HTMLInputElement_put_type,
675 HTMLInputElement_get_type,
676 HTMLInputElement_put_value,
677 HTMLInputElement_get_value,
678 HTMLInputElement_put_name,
679 HTMLInputElement_get_name,
680 HTMLInputElement_put_status,
681 HTMLInputElement_get_status,
682 HTMLInputElement_put_disabled,
683 HTMLInputElement_get_disabled,
684 HTMLInputElement_get_form,
685 HTMLInputElement_put_size,
686 HTMLInputElement_get_size,
687 HTMLInputElement_put_maxLength,
688 HTMLInputElement_get_maxLength,
689 HTMLInputElement_select,
690 HTMLInputElement_put_onchange,
691 HTMLInputElement_get_onchange,
692 HTMLInputElement_put_onselect,
693 HTMLInputElement_get_onselect,
694 HTMLInputElement_put_defaultValue,
695 HTMLInputElement_get_defaultValue,
696 HTMLInputElement_put_readOnly,
697 HTMLInputElement_get_readOnly,
698 HTMLInputElement_createTextRange,
699 HTMLInputElement_put_indeterminate,
700 HTMLInputElement_get_indeterminate,
701 HTMLInputElement_put_defaultChecked,
702 HTMLInputElement_get_defaultChecked,
703 HTMLInputElement_put_checked,
704 HTMLInputElement_get_checked,
705 HTMLInputElement_put_border,
706 HTMLInputElement_get_border,
707 HTMLInputElement_put_vspace,
708 HTMLInputElement_get_vspace,
709 HTMLInputElement_put_hspace,
710 HTMLInputElement_get_hspace,
711 HTMLInputElement_put_alt,
712 HTMLInputElement_get_alt,
713 HTMLInputElement_put_src,
714 HTMLInputElement_get_src,
715 HTMLInputElement_put_lowsrc,
716 HTMLInputElement_get_lowsrc,
717 HTMLInputElement_put_vrml,
718 HTMLInputElement_get_vrml,
719 HTMLInputElement_put_dynsrc,
720 HTMLInputElement_get_dynsrc,
721 HTMLInputElement_get_readyState,
722 HTMLInputElement_get_complete,
723 HTMLInputElement_put_loop,
724 HTMLInputElement_get_loop,
725 HTMLInputElement_put_align,
726 HTMLInputElement_get_align,
727 HTMLInputElement_put_onload,
728 HTMLInputElement_get_onload,
729 HTMLInputElement_put_onerror,
730 HTMLInputElement_get_onerror,
731 HTMLInputElement_put_onabort,
732 HTMLInputElement_get_onabort,
733 HTMLInputElement_put_width,
734 HTMLInputElement_get_width,
735 HTMLInputElement_put_height,
736 HTMLInputElement_get_height,
737 HTMLInputElement_put_start,
738 HTMLInputElement_get_start
741 HTMLElement *HTMLInputElement_Create(nsIDOMHTMLElement *nselem)
743 HTMLInputElement *ret = mshtml_alloc(sizeof(HTMLInputElement));
746 ret->lpHTMLInputElementVtbl = &HTMLInputElementVtbl;
748 nsres = nsIDOMHTMLElement_QueryInterface(nselem, &IID_nsIDOMHTMLInputElement,
749 (void**)&ret->nsinput);
751 ERR("Could not get nsIDOMHTMLInputElement interface: %08x\n", nsres);
753 ret->element.impl = (IUnknown*)HTMLINPUT(ret);
754 ret->element.destructor = HTMLInputElement_destructor;
756 return &ret->element;