ReactOS 0.4.15-dev-7958-gcd0bb1a
htmlelem.c File Reference
#include "mshtml_private.h"
Include dependency graph for htmlelem.c:

Go to the source code of this file.

Classes

struct  tag_desc_t
 
struct  HTMLFiltersCollection
 
struct  HTMLRect
 

Functions

static const tag_desc_tget_tag_desc (const WCHAR *tag_name)
 
HRESULT replace_node_by_html (nsIDOMHTMLDocument *nsdoc, nsIDOMNode *nsnode, const WCHAR *html)
 
nsresult get_elem_attr_value (nsIDOMHTMLElement *nselem, const WCHAR *name, nsAString *val_str, const PRUnichar **val)
 
HRESULT elem_string_attr_getter (HTMLElement *elem, const WCHAR *name, BOOL use_null, BSTR *p)
 
HRESULT elem_string_attr_setter (HTMLElement *elem, const WCHAR *name, const WCHAR *value)
 
HRESULT get_readystate_string (READYSTATE readystate, BSTR *p)
 
static HTMLFiltersCollectionimpl_from_IHTMLFiltersCollection (IHTMLFiltersCollection *iface)
 
static IHTMLFiltersCollection * HTMLFiltersCollection_Create (void)
 
static HTMLElementimpl_from_IHTMLElement (IHTMLElement *iface)
 
HRESULT create_nselem (HTMLDocumentNode *doc, const WCHAR *tag, nsIDOMHTMLElement **ret)
 
HRESULT create_element (HTMLDocumentNode *doc, const WCHAR *tag, HTMLElement **ret)
 
static HTMLRectimpl_from_IHTMLRect (IHTMLRect *iface)
 
static HRESULT WINAPI HTMLRect_QueryInterface (IHTMLRect *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLRect_AddRef (IHTMLRect *iface)
 
static ULONG WINAPI HTMLRect_Release (IHTMLRect *iface)
 
static HRESULT WINAPI HTMLRect_GetTypeInfoCount (IHTMLRect *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLRect_GetTypeInfo (IHTMLRect *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLRect_GetIDsOfNames (IHTMLRect *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLRect_Invoke (IHTMLRect *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLRect_put_left (IHTMLRect *iface, LONG v)
 
static HRESULT WINAPI HTMLRect_get_left (IHTMLRect *iface, LONG *p)
 
static HRESULT WINAPI HTMLRect_put_top (IHTMLRect *iface, LONG v)
 
static HRESULT WINAPI HTMLRect_get_top (IHTMLRect *iface, LONG *p)
 
static HRESULT WINAPI HTMLRect_put_right (IHTMLRect *iface, LONG v)
 
static HRESULT WINAPI HTMLRect_get_right (IHTMLRect *iface, LONG *p)
 
static HRESULT WINAPI HTMLRect_put_bottom (IHTMLRect *iface, LONG v)
 
static HRESULT WINAPI HTMLRect_get_bottom (IHTMLRect *iface, LONG *p)
 
static HRESULT create_html_rect (nsIDOMClientRect *nsrect, IHTMLRect **ret)
 
static HRESULT WINAPI HTMLElement_QueryInterface (IHTMLElement *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLElement_AddRef (IHTMLElement *iface)
 
static ULONG WINAPI HTMLElement_Release (IHTMLElement *iface)
 
static HRESULT WINAPI HTMLElement_GetTypeInfoCount (IHTMLElement *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLElement_GetTypeInfo (IHTMLElement *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLElement_GetIDsOfNames (IHTMLElement *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLElement_Invoke (IHTMLElement *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLElement_setAttribute (IHTMLElement *iface, BSTR strAttributeName, VARIANT AttributeValue, LONG lFlags)
 
HRESULT get_elem_attr_value_by_dispid (HTMLElement *elem, DISPID dispid, DWORD flags, VARIANT *ret)
 
static HRESULT WINAPI HTMLElement_getAttribute (IHTMLElement *iface, BSTR strAttributeName, LONG lFlags, VARIANT *AttributeValue)
 
static HRESULT WINAPI HTMLElement_removeAttribute (IHTMLElement *iface, BSTR strAttributeName, LONG lFlags, VARIANT_BOOL *pfSuccess)
 
static HRESULT WINAPI HTMLElement_put_className (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_className (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_put_id (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_id (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_get_tagName (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_get_parentElement (IHTMLElement *iface, IHTMLElement **p)
 
static HRESULT WINAPI HTMLElement_get_style (IHTMLElement *iface, IHTMLStyle **p)
 
static HRESULT WINAPI HTMLElement_put_onhelp (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onhelp (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onclick (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onclick (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_ondblclick (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_ondblclick (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onkeydown (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onkeydown (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onkeyup (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onkeyup (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onkeypress (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onkeypress (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onmouseout (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onmouseout (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onmouseover (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onmouseover (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onmousemove (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onmousemove (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onmousedown (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onmousedown (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onmouseup (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onmouseup (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_get_document (IHTMLElement *iface, IDispatch **p)
 
static HRESULT WINAPI HTMLElement_put_title (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_title (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_put_language (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_language (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_put_onselectstart (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onselectstart (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_scrollIntoView (IHTMLElement *iface, VARIANT varargStart)
 
static HRESULT WINAPI HTMLElement_contains (IHTMLElement *iface, IHTMLElement *pChild, VARIANT_BOOL *pfResult)
 
static HRESULT WINAPI HTMLElement_get_sourceIndex (IHTMLElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement_get_recordNumber (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_lang (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_lang (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_get_offsetLeft (IHTMLElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement_get_offsetTop (IHTMLElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement_get_offsetWidth (IHTMLElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement_get_offsetHeight (IHTMLElement *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement_get_offsetParent (IHTMLElement *iface, IHTMLElement **p)
 
static HRESULT WINAPI HTMLElement_put_innerHTML (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_innerHTML (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_put_innerText (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_innerText (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_put_outerHTML (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_outerHTML (IHTMLElement *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement_put_outerText (IHTMLElement *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement_get_outerText (IHTMLElement *iface, BSTR *p)
 
static HRESULT insert_adjacent_node (HTMLElement *This, const WCHAR *where, nsIDOMNode *nsnode, HTMLDOMNode **ret_node)
 
static HRESULT WINAPI HTMLElement_insertAdjacentHTML (IHTMLElement *iface, BSTR where, BSTR html)
 
static HRESULT WINAPI HTMLElement_insertAdjacentText (IHTMLElement *iface, BSTR where, BSTR text)
 
static HRESULT WINAPI HTMLElement_get_parentTextEdit (IHTMLElement *iface, IHTMLElement **p)
 
static HRESULT WINAPI HTMLElement_get_isTextEdit (IHTMLElement *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement_click (IHTMLElement *iface)
 
static HRESULT WINAPI HTMLElement_get_filters (IHTMLElement *iface, IHTMLFiltersCollection **p)
 
static HRESULT WINAPI HTMLElement_put_ondragstart (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_ondragstart (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_toString (IHTMLElement *iface, BSTR *String)
 
static HRESULT WINAPI HTMLElement_put_onbeforeupdate (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onbeforeupdate (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onafterupdate (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onafterupdate (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onerrorupdate (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onerrorupdate (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onrowexit (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onrowexit (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onrowenter (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onrowenter (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_ondatasetchanged (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_ondatasetchanged (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_ondataavailable (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_ondataavailable (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_ondatasetcomplete (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_ondatasetcomplete (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_put_onfilterchange (IHTMLElement *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement_get_onfilterchange (IHTMLElement *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement_get_children (IHTMLElement *iface, IDispatch **p)
 
static HRESULT WINAPI HTMLElement_get_all (IHTMLElement *iface, IDispatch **p)
 
HTMLElementunsafe_impl_from_IHTMLElement (IHTMLElement *iface)
 
static HTMLElementimpl_from_IHTMLElement2 (IHTMLElement2 *iface)
 
static HRESULT WINAPI HTMLElement2_QueryInterface (IHTMLElement2 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLElement2_AddRef (IHTMLElement2 *iface)
 
static ULONG WINAPI HTMLElement2_Release (IHTMLElement2 *iface)
 
static HRESULT WINAPI HTMLElement2_GetTypeInfoCount (IHTMLElement2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLElement2_GetTypeInfo (IHTMLElement2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLElement2_GetIDsOfNames (IHTMLElement2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLElement2_Invoke (IHTMLElement2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLElement2_get_scopeName (IHTMLElement2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement2_setCapture (IHTMLElement2 *iface, VARIANT_BOOL containerCapture)
 
static HRESULT WINAPI HTMLElement2_releaseCapture (IHTMLElement2 *iface)
 
static HRESULT WINAPI HTMLElement2_put_onlosecapture (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onlosecapture (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_componentFromPoint (IHTMLElement2 *iface, LONG x, LONG y, BSTR *component)
 
static HRESULT WINAPI HTMLElement2_doScroll (IHTMLElement2 *iface, VARIANT component)
 
static HRESULT WINAPI HTMLElement2_put_onscroll (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onscroll (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_ondrag (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_ondrag (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_ondragend (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_ondragend (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_ondragenter (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_ondragenter (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_ondragover (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_ondragover (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_ondragleave (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_ondragleave (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_ondrop (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_ondrop (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onbeforecut (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onbeforecut (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_oncut (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_oncut (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onbeforecopy (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onbeforecopy (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_oncopy (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_oncopy (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onbeforepaste (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onbeforepaste (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onpaste (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onpaste (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_get_currentStyle (IHTMLElement2 *iface, IHTMLCurrentStyle **p)
 
static HRESULT WINAPI HTMLElement2_put_onpropertychange (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onpropertychange (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_getClientRects (IHTMLElement2 *iface, IHTMLRectCollection **pRectCol)
 
static HRESULT WINAPI HTMLElement2_getBoundingClientRect (IHTMLElement2 *iface, IHTMLRect **pRect)
 
static HRESULT WINAPI HTMLElement2_setExpression (IHTMLElement2 *iface, BSTR propname, BSTR expression, BSTR language)
 
static HRESULT WINAPI HTMLElement2_getExpression (IHTMLElement2 *iface, BSTR propname, VARIANT *expression)
 
static HRESULT WINAPI HTMLElement2_removeExpression (IHTMLElement2 *iface, BSTR propname, VARIANT_BOOL *pfSuccess)
 
static HRESULT WINAPI HTMLElement2_put_tabIndex (IHTMLElement2 *iface, short v)
 
static HRESULT WINAPI HTMLElement2_get_tabIndex (IHTMLElement2 *iface, short *p)
 
static HRESULT WINAPI HTMLElement2_focus (IHTMLElement2 *iface)
 
static HRESULT WINAPI HTMLElement2_put_accessKey (IHTMLElement2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement2_get_accessKey (IHTMLElement2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement2_put_onblur (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onblur (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onfocus (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onfocus (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onresize (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onresize (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_blur (IHTMLElement2 *iface)
 
static HRESULT WINAPI HTMLElement2_addFilter (IHTMLElement2 *iface, IUnknown *pUnk)
 
static HRESULT WINAPI HTMLElement2_removeFilter (IHTMLElement2 *iface, IUnknown *pUnk)
 
static HRESULT WINAPI HTMLElement2_get_clientHeight (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_get_clientWidth (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_get_clientTop (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_get_clientLeft (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_attachEvent (IHTMLElement2 *iface, BSTR event, IDispatch *pDisp, VARIANT_BOOL *pfResult)
 
static HRESULT WINAPI HTMLElement2_detachEvent (IHTMLElement2 *iface, BSTR event, IDispatch *pDisp)
 
static HRESULT WINAPI HTMLElement2_get_readyState (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onreadystatechange (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onreadystatechange (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onrowsdelete (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onrowsdelete (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_onrowsinserted (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_onrowsinserted (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_oncellchange (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_oncellchange (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_put_dir (IHTMLElement2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement2_get_dir (IHTMLElement2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement2_createControlRange (IHTMLElement2 *iface, IDispatch **range)
 
static HRESULT WINAPI HTMLElement2_get_scrollHeight (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_get_scrollWidth (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_put_scrollTop (IHTMLElement2 *iface, LONG v)
 
static HRESULT WINAPI HTMLElement2_get_scrollTop (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_put_scrollLeft (IHTMLElement2 *iface, LONG v)
 
static HRESULT WINAPI HTMLElement2_get_scrollLeft (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_clearAttributes (IHTMLElement2 *iface)
 
static HRESULT WINAPI HTMLElement2_mergeAttributes (IHTMLElement2 *iface, IHTMLElement *mergeThis)
 
static HRESULT WINAPI HTMLElement2_put_oncontextmenu (IHTMLElement2 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement2_get_oncontextmenu (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_insertAdjacentElement (IHTMLElement2 *iface, BSTR where, IHTMLElement *insertedElement, IHTMLElement **inserted)
 
static HRESULT WINAPI HTMLElement2_applyElement (IHTMLElement2 *iface, IHTMLElement *apply, BSTR where, IHTMLElement **applied)
 
static HRESULT WINAPI HTMLElement2_getAdjacentText (IHTMLElement2 *iface, BSTR where, BSTR *text)
 
static HRESULT WINAPI HTMLElement2_replaceAdjacentText (IHTMLElement2 *iface, BSTR where, BSTR newText, BSTR *oldText)
 
static HRESULT WINAPI HTMLElement2_get_canHandleChildren (IHTMLElement2 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement2_addBehavior (IHTMLElement2 *iface, BSTR bstrUrl, VARIANT *pvarFactory, LONG *pCookie)
 
static HRESULT WINAPI HTMLElement2_removeBehavior (IHTMLElement2 *iface, LONG cookie, VARIANT_BOOL *pfResult)
 
static HRESULT WINAPI HTMLElement2_get_runtimeStyle (IHTMLElement2 *iface, IHTMLStyle **p)
 
static HRESULT WINAPI HTMLElement2_get_behaviorUrns (IHTMLElement2 *iface, IDispatch **p)
 
static HRESULT WINAPI HTMLElement2_put_tagUrn (IHTMLElement2 *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement2_get_tagUrn (IHTMLElement2 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement2_put_onbeforeeditfocus (IHTMLElement2 *iface, VARIANT vv)
 
static HRESULT WINAPI HTMLElement2_get_onbeforeeditfocus (IHTMLElement2 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement2_get_readyStateValue (IHTMLElement2 *iface, LONG *p)
 
static HRESULT WINAPI HTMLElement2_getElementsByTagName (IHTMLElement2 *iface, BSTR v, IHTMLElementCollection **pelColl)
 
static HTMLElementimpl_from_IHTMLElement3 (IHTMLElement3 *iface)
 
static HRESULT WINAPI HTMLElement3_QueryInterface (IHTMLElement3 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLElement3_AddRef (IHTMLElement3 *iface)
 
static ULONG WINAPI HTMLElement3_Release (IHTMLElement3 *iface)
 
static HRESULT WINAPI HTMLElement3_GetTypeInfoCount (IHTMLElement3 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLElement3_GetTypeInfo (IHTMLElement3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLElement3_GetIDsOfNames (IHTMLElement3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLElement3_Invoke (IHTMLElement3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLElement3_mergeAttributes (IHTMLElement3 *iface, IHTMLElement *mergeThis, VARIANT *pvarFlags)
 
static HRESULT WINAPI HTMLElement3_get_isMultiLine (IHTMLElement3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement3_get_canHaveHTML (IHTMLElement3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement3_put_onlayoutcomplete (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onlayoutcomplete (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_onpage (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onpage (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_inflateBlock (IHTMLElement3 *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLElement3_get_inflateBlock (IHTMLElement3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement3_put_onbeforedeactivate (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onbeforedeactivate (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_setActive (IHTMLElement3 *iface)
 
static HRESULT WINAPI HTMLElement3_put_contentEditable (IHTMLElement3 *iface, BSTR v)
 
static HRESULT WINAPI HTMLElement3_get_contentEditable (IHTMLElement3 *iface, BSTR *p)
 
static HRESULT WINAPI HTMLElement3_get_isContentEditable (IHTMLElement3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement3_put_hideFocus (IHTMLElement3 *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLElement3_get_hideFocus (IHTMLElement3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement3_put_disabled (IHTMLElement3 *iface, VARIANT_BOOL v)
 
static HRESULT WINAPI HTMLElement3_get_disabled (IHTMLElement3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement3_get_isDisabled (IHTMLElement3 *iface, VARIANT_BOOL *p)
 
static HRESULT WINAPI HTMLElement3_put_onmove (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onmove (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_oncontrolselect (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_oncontrolselect (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_fireEvent (IHTMLElement3 *iface, BSTR bstrEventName, VARIANT *pvarEventObject, VARIANT_BOOL *pfCancelled)
 
static HRESULT WINAPI HTMLElement3_put_onresizestart (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onresizestart (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_onresizeend (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onresizeend (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_onmovestart (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onmovestart (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_onmoveend (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onmoveend (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_onmousecenter (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onmousecenter (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_onmouseleave (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onmouseleave (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_onactivate (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_onactivate (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_put_ondeactivate (IHTMLElement3 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement3_get_ondeactivate (IHTMLElement3 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement3_dragDrop (IHTMLElement3 *iface, VARIANT_BOOL *pfRet)
 
static HRESULT WINAPI HTMLElement3_get_glyphMode (IHTMLElement3 *iface, LONG *p)
 
static HTMLElementimpl_from_IHTMLElement4 (IHTMLElement4 *iface)
 
static HRESULT WINAPI HTMLElement4_QueryInterface (IHTMLElement4 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLElement4_AddRef (IHTMLElement4 *iface)
 
static ULONG WINAPI HTMLElement4_Release (IHTMLElement4 *iface)
 
static HRESULT WINAPI HTMLElement4_GetTypeInfoCount (IHTMLElement4 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLElement4_GetTypeInfo (IHTMLElement4 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLElement4_GetIDsOfNames (IHTMLElement4 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLElement4_Invoke (IHTMLElement4 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLElement4_put_onmousewheel (IHTMLElement4 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement4_get_onmousewheel (IHTMLElement4 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement4_normalize (IHTMLElement4 *iface)
 
static HRESULT WINAPI HTMLElement4_getAttributeNode (IHTMLElement4 *iface, BSTR bstrname, IHTMLDOMAttribute **ppAttribute)
 
static HRESULT WINAPI HTMLElement4_setAttributeNode (IHTMLElement4 *iface, IHTMLDOMAttribute *pattr, IHTMLDOMAttribute **ppretAttribute)
 
static HRESULT WINAPI HTMLElement4_removeAttributeNode (IHTMLElement4 *iface, IHTMLDOMAttribute *pattr, IHTMLDOMAttribute **ppretAttribute)
 
static HRESULT WINAPI HTMLElement4_put_onbeforeactivate (IHTMLElement4 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement4_get_onbeforeactivate (IHTMLElement4 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement4_put_onfocusin (IHTMLElement4 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement4_get_onfocusin (IHTMLElement4 *iface, VARIANT *p)
 
static HRESULT WINAPI HTMLElement4_put_onfocusout (IHTMLElement4 *iface, VARIANT v)
 
static HRESULT WINAPI HTMLElement4_get_onfocusout (IHTMLElement4 *iface, VARIANT *p)
 
static HTMLElementimpl_from_HTMLDOMNode (HTMLDOMNode *iface)
 
HRESULT HTMLElement_QI (HTMLDOMNode *iface, REFIID riid, void **ppv)
 
void HTMLElement_destructor (HTMLDOMNode *iface)
 
HRESULT HTMLElement_clone (HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
 
HRESULT HTMLElement_handle_event (HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
 
static HTMLElementimpl_from_DispatchEx (DispatchEx *iface)
 
static HRESULT HTMLElement_get_dispid (DispatchEx *dispex, BSTR name, DWORD grfdex, DISPID *pid)
 
static HRESULT HTMLElement_invoke (DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
 
static HRESULT HTMLElement_populate_props (DispatchEx *dispex)
 
static event_target_t ** HTMLElement_get_event_target_ptr (DispatchEx *dispex)
 
static void HTMLElement_bind_event (DispatchEx *dispex, int eid)
 
void HTMLElement_Init (HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
 
HRESULT HTMLElement_Create (HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL use_generic, HTMLElement **ret)
 
HRESULT get_elem (HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **ret)
 
static HRESULT WINAPI HTMLFiltersCollection_QueryInterface (IHTMLFiltersCollection *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLFiltersCollection_AddRef (IHTMLFiltersCollection *iface)
 
static ULONG WINAPI HTMLFiltersCollection_Release (IHTMLFiltersCollection *iface)
 
static HRESULT WINAPI HTMLFiltersCollection_GetTypeInfoCount (IHTMLFiltersCollection *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLFiltersCollection_GetTypeInfo (IHTMLFiltersCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLFiltersCollection_GetIDsOfNames (IHTMLFiltersCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLFiltersCollection_Invoke (IHTMLFiltersCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLFiltersCollection_get_length (IHTMLFiltersCollection *iface, LONG *p)
 
static HRESULT WINAPI HTMLFiltersCollection_get__newEnum (IHTMLFiltersCollection *iface, IUnknown **p)
 
static HRESULT WINAPI HTMLFiltersCollection_item (IHTMLFiltersCollection *iface, VARIANT *pvarIndex, VARIANT *pvarResult)
 
static HRESULT HTMLFiltersCollection_get_dispid (DispatchEx *dispex, BSTR name, DWORD flags, DISPID *dispid)
 
static HRESULT HTMLFiltersCollection_invoke (DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
 
static HTMLAttributeCollectionimpl_from_IHTMLAttributeCollection (IHTMLAttributeCollection *iface)
 
static HRESULT WINAPI HTMLAttributeCollection_QueryInterface (IHTMLAttributeCollection *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLAttributeCollection_AddRef (IHTMLAttributeCollection *iface)
 
static ULONG WINAPI HTMLAttributeCollection_Release (IHTMLAttributeCollection *iface)
 
static HRESULT WINAPI HTMLAttributeCollection_GetTypeInfoCount (IHTMLAttributeCollection *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLAttributeCollection_GetTypeInfo (IHTMLAttributeCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLAttributeCollection_GetIDsOfNames (IHTMLAttributeCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLAttributeCollection_Invoke (IHTMLAttributeCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT get_attr_dispid_by_idx (HTMLAttributeCollection *This, LONG *idx, DISPID *dispid)
 
static HRESULT get_attr_dispid_by_name (HTMLAttributeCollection *This, BSTR name, DISPID *id)
 
static HRESULT get_domattr (HTMLAttributeCollection *This, DISPID id, LONG *list_pos, HTMLDOMAttribute **attr)
 
static HRESULT WINAPI HTMLAttributeCollection_get_length (IHTMLAttributeCollection *iface, LONG *p)
 
static HRESULT WINAPI HTMLAttributeCollection__newEnum (IHTMLAttributeCollection *iface, IUnknown **p)
 
static HRESULT WINAPI HTMLAttributeCollection_item (IHTMLAttributeCollection *iface, VARIANT *name, IDispatch **ppItem)
 
static HTMLAttributeCollectionimpl_from_IHTMLAttributeCollection2 (IHTMLAttributeCollection2 *iface)
 
static HRESULT WINAPI HTMLAttributeCollection2_QueryInterface (IHTMLAttributeCollection2 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLAttributeCollection2_AddRef (IHTMLAttributeCollection2 *iface)
 
static ULONG WINAPI HTMLAttributeCollection2_Release (IHTMLAttributeCollection2 *iface)
 
static HRESULT WINAPI HTMLAttributeCollection2_GetTypeInfoCount (IHTMLAttributeCollection2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLAttributeCollection2_GetTypeInfo (IHTMLAttributeCollection2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLAttributeCollection2_GetIDsOfNames (IHTMLAttributeCollection2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLAttributeCollection2_Invoke (IHTMLAttributeCollection2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLAttributeCollection2_getNamedItem (IHTMLAttributeCollection2 *iface, BSTR bstrName, IHTMLDOMAttribute **newretNode)
 
static HRESULT WINAPI HTMLAttributeCollection2_setNamedItem (IHTMLAttributeCollection2 *iface, IHTMLDOMAttribute *ppNode, IHTMLDOMAttribute **newretNode)
 
static HRESULT WINAPI HTMLAttributeCollection2_removeNamedItem (IHTMLAttributeCollection2 *iface, BSTR bstrName, IHTMLDOMAttribute **newretNode)
 
static HTMLAttributeCollectionimpl_from_IHTMLAttributeCollection3 (IHTMLAttributeCollection3 *iface)
 
static HRESULT WINAPI HTMLAttributeCollection3_QueryInterface (IHTMLAttributeCollection3 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI HTMLAttributeCollection3_AddRef (IHTMLAttributeCollection3 *iface)
 
static ULONG WINAPI HTMLAttributeCollection3_Release (IHTMLAttributeCollection3 *iface)
 
static HRESULT WINAPI HTMLAttributeCollection3_GetTypeInfoCount (IHTMLAttributeCollection3 *iface, UINT *pctinfo)
 
static HRESULT WINAPI HTMLAttributeCollection3_GetTypeInfo (IHTMLAttributeCollection3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI HTMLAttributeCollection3_GetIDsOfNames (IHTMLAttributeCollection3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI HTMLAttributeCollection3_Invoke (IHTMLAttributeCollection3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI HTMLAttributeCollection3_getNamedItem (IHTMLAttributeCollection3 *iface, BSTR bstrName, IHTMLDOMAttribute **ppNodeOut)
 
static HRESULT WINAPI HTMLAttributeCollection3_setNamedItem (IHTMLAttributeCollection3 *iface, IHTMLDOMAttribute *pNodeIn, IHTMLDOMAttribute **ppNodeOut)
 
static HRESULT WINAPI HTMLAttributeCollection3_removeNamedItem (IHTMLAttributeCollection3 *iface, BSTR bstrName, IHTMLDOMAttribute **ppNodeOut)
 
static HRESULT WINAPI HTMLAttributeCollection3_item (IHTMLAttributeCollection3 *iface, LONG index, IHTMLDOMAttribute **ppNodeOut)
 
static HRESULT WINAPI HTMLAttributeCollection3_get_length (IHTMLAttributeCollection3 *iface, LONG *p)
 
static HTMLAttributeCollectionHTMLAttributeCollection_from_DispatchEx (DispatchEx *iface)
 
static HRESULT HTMLAttributeCollection_get_dispid (DispatchEx *dispex, BSTR name, DWORD flags, DISPID *dispid)
 
static HRESULT HTMLAttributeCollection_invoke (DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
 
HRESULT HTMLElement_get_attr_col (HTMLDOMNode *iface, HTMLAttributeCollection **ac)
 

Variables

static const WCHAR aW [] = {'A',0}
 
static const WCHAR areaW [] = {'A','R','E','A',0}
 
static const WCHAR bodyW [] = {'B','O','D','Y',0}
 
static const WCHAR buttonW [] = {'B','U','T','T','O','N',0}
 
static const WCHAR embedW [] = {'E','M','B','E','D',0}
 
static const WCHAR formW [] = {'F','O','R','M',0}
 
static const WCHAR frameW [] = {'F','R','A','M','E',0}
 
static const WCHAR headW [] = {'H','E','A','D',0}
 
static const WCHAR iframeW [] = {'I','F','R','A','M','E',0}
 
static const WCHAR imgW [] = {'I','M','G',0}
 
static const WCHAR inputW [] = {'I','N','P','U','T',0}
 
static const WCHAR labelW [] = {'L','A','B','E','L',0}
 
static const WCHAR linkW [] = {'L','I','N','K',0}
 
static const WCHAR metaW [] = {'M','E','T','A',0}
 
static const WCHAR objectW [] = {'O','B','J','E','C','T',0}
 
static const WCHAR optionW [] = {'O','P','T','I','O','N',0}
 
static const WCHAR scriptW [] = {'S','C','R','I','P','T',0}
 
static const WCHAR selectW [] = {'S','E','L','E','C','T',0}
 
static const WCHAR styleW [] = {'S','T','Y','L','E',0}
 
static const WCHAR tableW [] = {'T','A','B','L','E',0}
 
static const WCHAR tdW [] = {'T','D',0}
 
static const WCHAR textareaW [] = {'T','E','X','T','A','R','E','A',0}
 
static const WCHAR title_tagW [] = {'T','I','T','L','E',0}
 
static const WCHAR trW [] = {'T','R',0}
 
static const tag_desc_t tag_descs []
 
static const IHTMLRectVtbl HTMLRectVtbl
 
static const tid_t HTMLRect_iface_tids []
 
static dispex_static_data_t HTMLRect_dispex
 
static const WCHAR titleW [] = {'t','i','t','l','e',0}
 
static const WCHAR languageW [] = {'l','a','n','g','u','a','g','e',0}
 
static const IHTMLElementVtbl HTMLElementVtbl
 
static const IHTMLElement2Vtbl HTMLElement2Vtbl
 
static const WCHAR disabledW [] = {'d','i','s','a','b','l','e','d',0}
 
static const IHTMLElement3Vtbl HTMLElement3Vtbl
 
static const IHTMLElement4Vtbl HTMLElement4Vtbl
 
cp_static_data_t HTMLElementEvents2_data = { HTMLElementEvents2_tid, NULL , TRUE }
 
const cpc_entry_t HTMLElement_cpc []
 
static const NodeImplVtbl HTMLElementImplVtbl
 
static const tid_t HTMLElement_iface_tids []
 
static dispex_static_data_vtbl_t HTMLElement_dispex_vtbl
 
static dispex_static_data_t HTMLElement_dispex
 
static const IHTMLFiltersCollectionVtbl HTMLFiltersCollectionVtbl
 
static const dispex_static_data_vtbl_t HTMLFiltersCollection_dispex_vtbl
 
static const tid_t HTMLFiltersCollection_iface_tids []
 
static dispex_static_data_t HTMLFiltersCollection_dispex
 
static const IHTMLAttributeCollectionVtbl HTMLAttributeCollectionVtbl
 
static const IHTMLAttributeCollection2Vtbl HTMLAttributeCollection2Vtbl
 
static const IHTMLAttributeCollection3Vtbl HTMLAttributeCollection3Vtbl
 
static const dispex_static_data_vtbl_t HTMLAttributeCollection_dispex_vtbl
 
static const tid_t HTMLAttributeCollection_iface_tids []
 
static dispex_static_data_t HTMLAttributeCollection_dispex
 

Function Documentation

◆ create_element()

HRESULT create_element ( HTMLDocumentNode doc,
const WCHAR tag,
HTMLElement **  ret 
)

Definition at line 275 of file htmlelem.c.

276{
277 nsIDOMHTMLElement *nselem;
279
280 /* Use owner doc if called on document fragment */
281 if(!doc->nsdoc)
282 doc = doc->node.doc;
283
284 hres = create_nselem(doc, tag, &nselem);
285 if(FAILED(hres))
286 return hres;
287
288 hres = HTMLElement_Create(doc, (nsIDOMNode*)nselem, TRUE, ret);
289 nsIDOMHTMLElement_Release(nselem);
290 return hres;
291}
#define TRUE
Definition: types.h:120
HRESULT HTMLElement_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, BOOL use_generic, HTMLElement **ret)
Definition: htmlelem.c:4032
HRESULT create_nselem(HTMLDocumentNode *doc, const WCHAR *tag, nsIDOMHTMLElement **ret)
Definition: htmlelem.c:246
#define FAILED(hr)
Definition: intsafe.h:51
HRESULT hres
Definition: protocol.c:465
HTMLDocumentNode * doc
HTMLDOMNode node
nsIDOMHTMLDocument * nsdoc
Definition: ecma_167.h:138
int ret

Referenced by HTMLDocument_createElement(), and HTMLDocument_createStyleSheet().

◆ create_html_rect()

static HRESULT create_html_rect ( nsIDOMClientRect nsrect,
IHTMLRect **  ret 
)
static

Definition at line 518 of file htmlelem.c.

519{
520 HTMLRect *rect;
521
522 rect = heap_alloc_zero(sizeof(HTMLRect));
523 if(!rect)
524 return E_OUTOFMEMORY;
525
526 rect->IHTMLRect_iface.lpVtbl = &HTMLRectVtbl;
527 rect->ref = 1;
528
529 init_dispex(&rect->dispex, (IUnknown*)&rect->IHTMLRect_iface, &HTMLRect_dispex);
530
531 nsIDOMClientRect_AddRef(nsrect);
532 rect->nsrect = nsrect;
533
534 *ret = &rect->IHTMLRect_iface;
535 return S_OK;
536}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const IHTMLRectVtbl HTMLRectVtbl
Definition: htmlelem.c:489
static dispex_static_data_t HTMLRect_dispex
Definition: htmlelem.c:511
#define S_OK
Definition: intsafe.h:52
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Definition: dispex.c:919
& rect
Definition: startmenu.cpp:1413

Referenced by HTMLElement2_getBoundingClientRect().

◆ create_nselem()

HRESULT create_nselem ( HTMLDocumentNode doc,
const WCHAR tag,
nsIDOMHTMLElement **  ret 
)

Definition at line 246 of file htmlelem.c.

247{
248 nsIDOMElement *nselem;
249 nsAString tag_str;
250 nsresult nsres;
251
252 if(!doc->nsdoc) {
253 WARN("NULL nsdoc\n");
254 return E_UNEXPECTED;
255 }
256
257 nsAString_InitDepend(&tag_str, tag);
258 nsres = nsIDOMHTMLDocument_CreateElement(doc->nsdoc, &tag_str, &nselem);
259 nsAString_Finish(&tag_str);
260 if(NS_FAILED(nsres)) {
261 ERR("CreateElement failed: %08x\n", nsres);
262 return E_FAIL;
263 }
264
265 nsres = nsIDOMElement_QueryInterface(nselem, &IID_nsIDOMHTMLElement, (void**)ret);
266 nsIDOMElement_Release(nselem);
267 if(NS_FAILED(nsres)) {
268 ERR("Could not get nsIDOMHTMLElement iface: %08x\n", nsres);
269 return E_FAIL;
270 }
271
272 return S_OK;
273}
#define WARN(fmt,...)
Definition: debug.h:112
#define ERR(fmt,...)
Definition: debug.h:110
#define E_FAIL
Definition: ddrawi.h:102
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:836
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:826
#define NS_FAILED(res)
#define E_UNEXPECTED
Definition: winerror.h:2456

Referenced by create_element(), exec_hyperlink(), exec_indent(), HTMLImageElementFactory_create(), HTMLOptionElementFactory_create(), and set_font_size().

◆ elem_string_attr_getter()

HRESULT elem_string_attr_getter ( HTMLElement elem,
const WCHAR name,
BOOL  use_null,
BSTR p 
)

Definition at line 162 of file htmlelem.c.

163{
164 const PRUnichar *val;
165 nsAString val_str;
166 nsresult nsres;
167 HRESULT hres = S_OK;
168
169 nsres = get_elem_attr_value(elem->nselem, name, &val_str, &val);
170 if(NS_FAILED(nsres))
171 return E_FAIL;
172
173 TRACE("%s: returning %s\n", debugstr_w(name), debugstr_w(val));
174
175 if(*val || !use_null) {
176 *p = SysAllocString(val);
177 if(!*p)
179 }else {
180 *p = NULL;
181 }
182 nsAString_Finish(&val_str);
183 return hres;
184}
#define NULL
Definition: types.h:112
GLuint GLfloat * val
Definition: glext.h:7180
GLfloat GLfloat p
Definition: glext.h:8902
nsresult get_elem_attr_value(nsIDOMHTMLElement *nselem, const WCHAR *name, nsAString *val_str, const PRUnichar **val)
Definition: htmlelem.c:143
#define debugstr_w
Definition: kernel32.h:32
static size_t elem
Definition: string.c:68
WCHAR PRUnichar
Definition: nsiface.idl:48
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
#define TRACE(s)
Definition: solgame.cpp:4
Definition: name.c:39

Referenced by HTMLElement_get_language(), HTMLLabelElement_get_htmlFor(), HTMLMetaElement_get_charset(), HTMLMetaElement_get_content(), HTMLMetaElement_get_httpEquiv(), and HTMLMetaElement_get_name().

◆ elem_string_attr_setter()

HRESULT elem_string_attr_setter ( HTMLElement elem,
const WCHAR name,
const WCHAR value 
)

Definition at line 186 of file htmlelem.c.

187{
188 nsAString name_str, val_str;
189 nsresult nsres;
190
191 nsAString_InitDepend(&name_str, name);
192 nsAString_InitDepend(&val_str, value);
193 nsres = nsIDOMHTMLElement_SetAttribute(elem->nselem, &name_str, &val_str);
194 nsAString_Finish(&name_str);
195 nsAString_Finish(&val_str);
196
197 if(NS_FAILED(nsres)) {
198 WARN("SetAttribute failed: %08x\n", nsres);
199 return E_FAIL;
200 }
201
202 return S_OK;
203}
Definition: pdh_main.c:94

Referenced by HTMLElement_put_language(), HTMLMetaElement_put_charset(), and HTMLObjectElement2_put_classid().

◆ get_attr_dispid_by_idx()

static HRESULT get_attr_dispid_by_idx ( HTMLAttributeCollection This,
LONG idx,
DISPID dispid 
)
static

Definition at line 4364 of file htmlelem.c.

4365{
4366 IDispatchEx *dispex = &This->elem->node.event_target.dispex.IDispatchEx_iface;
4367 DISPID id = DISPID_STARTENUM;
4368 LONG len = -1;
4369 HRESULT hres;
4370
4371 FIXME("filter non-enumerable attributes out\n");
4372
4373 while(1) {
4374 hres = IDispatchEx_GetNextDispID(dispex, fdexEnumAll, id, &id);
4375 if(FAILED(hres))
4376 return hres;
4377 else if(hres == S_FALSE)
4378 break;
4379
4380 len++;
4381 if(len == *idx)
4382 break;
4383 }
4384
4385 if(dispid) {
4386 *dispid = id;
4387 return *idx==len ? S_OK : DISP_E_UNKNOWNNAME;
4388 }
4389
4390 *idx = len+1;
4391 return S_OK;
4392}
#define FIXME(fmt,...)
Definition: debug.h:111
unsigned int idx
Definition: utils.c:41
GLenum GLsizei len
Definition: glext.h:6722
GLuint id
Definition: glext.h:5910
static VARIANTARG static DISPID
Definition: ordinal.c:52
long LONG
Definition: pedump.c:60
#define S_FALSE
Definition: winerror.h:2357
#define DISP_E_UNKNOWNNAME
Definition: winerror.h:2515

Referenced by get_attr_dispid_by_name(), HTMLAttributeCollection3_item(), HTMLAttributeCollection_get_length(), and HTMLAttributeCollection_item().

◆ get_attr_dispid_by_name()

static HRESULT get_attr_dispid_by_name ( HTMLAttributeCollection This,
BSTR  name,
DISPID id 
)
inlinestatic

Definition at line 4394 of file htmlelem.c.

4395{
4396 HRESULT hres;
4397
4398 if(name[0]>='0' && name[0]<='9') {
4399 WCHAR *end_ptr;
4400 LONG idx;
4401
4402 idx = strtoulW(name, &end_ptr, 10);
4403 if(!*end_ptr) {
4405 if(SUCCEEDED(hres))
4406 return hres;
4407 }
4408 }
4409
4410 if(!This->elem) {
4411 WARN("NULL elem\n");
4412 return E_UNEXPECTED;
4413 }
4414
4415 hres = IDispatchEx_GetDispID(&This->elem->node.event_target.dispex.IDispatchEx_iface,
4416 name, fdexNameCaseInsensitive, id);
4417 return hres;
4418}
static HRESULT get_attr_dispid_by_idx(HTMLAttributeCollection *This, LONG *idx, DISPID *dispid)
Definition: htmlelem.c:4364
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define strtoulW(s1, s2, b)
Definition: unicode.h:41
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by HTMLAttributeCollection2_getNamedItem(), HTMLAttributeCollection_get_dispid(), and HTMLAttributeCollection_item().

◆ get_domattr()

static HRESULT get_domattr ( HTMLAttributeCollection This,
DISPID  id,
LONG list_pos,
HTMLDOMAttribute **  attr 
)
inlinestatic

Definition at line 4420 of file htmlelem.c.

4421{
4422 HTMLDOMAttribute *iter;
4423 LONG pos = 0;
4424 HRESULT hres;
4425
4426 *attr = NULL;
4428 if(iter->dispid == id) {
4429 *attr = iter;
4430 break;
4431 }
4432 pos++;
4433 }
4434
4435 if(!*attr) {
4436 if(!This->elem) {
4437 WARN("NULL elem\n");
4438 return E_UNEXPECTED;
4439 }
4440
4441 hres = HTMLDOMAttribute_Create(NULL, This->elem, id, attr);
4442 if(FAILED(hres))
4443 return hres;
4444 }
4445
4446 IHTMLDOMAttribute_AddRef(&(*attr)->IHTMLDOMAttribute_iface);
4447 if(list_pos)
4448 *list_pos = pos;
4449 return S_OK;
4450}
HRESULT HTMLDOMAttribute_Create(const WCHAR *name, HTMLElement *elem, DISPID dispid, HTMLDOMAttribute **attr)
Definition: htmlattr.c:473
uint32_t entry
Definition: isohybrid.c:63
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Definition: list.h:198
Definition: cookie.c:202

Referenced by HTMLAttributeCollection2_getNamedItem(), HTMLAttributeCollection3_item(), HTMLAttributeCollection_get_dispid(), and HTMLAttributeCollection_item().

◆ get_elem()

HRESULT get_elem ( HTMLDocumentNode doc,
nsIDOMElement nselem,
HTMLElement **  ret 
)

Definition at line 4078 of file htmlelem.c.

4079{
4081 HRESULT hres;
4082
4083 hres = get_node(doc, (nsIDOMNode*)nselem, TRUE, &node);
4084 if(FAILED(hres))
4085 return hres;
4086
4088 return S_OK;
4089}
static HTMLElement * impl_from_HTMLDOMNode(HTMLDOMNode *iface)
Definition: htmlelem.c:3733
HRESULT get_node(HTMLDocumentNode *This, nsIDOMNode *nsnode, BOOL create, HTMLDOMNode **ret)
Definition: htmlnode.c:1339
Definition: dlist.c:348

Referenced by get_doc_elem_by_id(), and HTMLDocument_get_activeElement().

◆ get_elem_attr_value()

nsresult get_elem_attr_value ( nsIDOMHTMLElement nselem,
const WCHAR name,
nsAString val_str,
const PRUnichar **  val 
)

Definition at line 143 of file htmlelem.c.

144{
145 nsAString name_str;
146 nsresult nsres;
147
148 nsAString_InitDepend(&name_str, name);
149 nsAString_Init(val_str, NULL);
150 nsres = nsIDOMHTMLElement_GetAttribute(nselem, &name_str, val_str);
151 nsAString_Finish(&name_str);
152 if(NS_FAILED(nsres)) {
153 ERR("GetAttribute(%s) failed: %08x\n", debugstr_w(name), nsres);
154 nsAString_Finish(val_str);
155 return nsres;
156 }
157
158 nsAString_GetData(val_str, val);
159 return NS_OK;
160}
#define NS_OK
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
Definition: nsembed.c:831
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
Definition: nsembed.c:817

Referenced by check_codebase(), check_event_attr(), elem_string_attr_getter(), fill_props(), get_elem_clsid(), get_font_size(), get_script_guid(), HTMLFormElement_get_dispid(), and is_elem_name().

◆ get_elem_attr_value_by_dispid()

HRESULT get_elem_attr_value_by_dispid ( HTMLElement elem,
DISPID  dispid,
DWORD  flags,
VARIANT ret 
)

Definition at line 621 of file htmlelem.c.

622{
623 DISPPARAMS dispParams = {NULL, NULL, 0, 0};
624 EXCEPINFO excep;
626
627 hres = IDispatchEx_InvokeEx(&elem->node.event_target.dispex.IDispatchEx_iface, dispid, LOCALE_SYSTEM_DEFAULT,
628 DISPATCH_PROPERTYGET, &dispParams, ret, &excep, NULL);
629 if(FAILED(hres))
630 return hres;
631
633 switch(V_VT(ret)) {
634 case VT_BSTR:
635 break;
636 case VT_DISPATCH:
637 IDispatch_Release(V_DISPATCH(ret));
638 V_VT(ret) = VT_BSTR;
640 break;
641 default:
643 if(FAILED(hres))
644 return hres;
645 }
646 }
647
648 return S_OK;
649}
@ VT_BSTR
Definition: compat.h:2303
@ VT_DISPATCH
Definition: compat.h:2304
GLbitfield flags
Definition: glext.h:7161
#define ATTRFLAG_ASSTRING
struct stdole::DISPPARAMS DISPPARAMS
struct stdole::EXCEPINFO EXCEPINFO
#define LOCALE_SYSTEM_DEFAULT
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
#define V_DISPATCH(A)
Definition: oleauto.h:239
#define DISPATCH_PROPERTYGET
Definition: oleauto.h:1007
HRESULT WINAPI DECLSPEC_HOTPATCH VariantChangeType(VARIANTARG *pvargDest, VARIANTARG *pvargSrc, USHORT wFlags, VARTYPE vt)
Definition: variant.c:962

Referenced by HTMLDOMAttribute2_get_value(), HTMLDOMAttribute_get_nodeValue(), and HTMLElement_getAttribute().

◆ get_readystate_string()

HRESULT get_readystate_string ( READYSTATE  readystate,
BSTR p 
)

Definition at line 205 of file htmlelem.c.

206{
207 static const WCHAR uninitializedW[] = {'u','n','i','n','i','t','i','a','l','i','z','e','d',0};
208 static const WCHAR loadingW[] = {'l','o','a','d','i','n','g',0};
209 static const WCHAR loadedW[] = {'l','o','a','d','e','d',0};
210 static const WCHAR interactiveW[] = {'i','n','t','e','r','a','c','t','i','v','e',0};
211 static const WCHAR completeW[] = {'c','o','m','p','l','e','t','e',0};
212
213 static const LPCWSTR readystate_strs[] = {
214 uninitializedW,
215 loadingW,
216 loadedW,
217 interactiveW,
218 completeW
219 };
220
221 assert(readystate <= READYSTATE_COMPLETE);
222 *p = SysAllocString(readystate_strs[readystate]);
223 return *p ? S_OK : E_OUTOFMEMORY;
224}
#define assert(x)
Definition: debug.h:53
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by HTMLDocument_get_readyState(), and HTMLScriptElement_get_readyState().

◆ get_tag_desc()

static const tag_desc_t * get_tag_desc ( const WCHAR tag_name)
static

Definition at line 78 of file htmlelem.c.

79{
80 DWORD min=0, max=sizeof(tag_descs)/sizeof(*tag_descs)-1, i;
81 int r;
82
83 while(min <= max) {
84 i = (min+max)/2;
85 r = strcmpW(tag_name, tag_descs[i].name);
86 if(!r)
87 return tag_descs+i;
88
89 if(r < 0)
90 max = i-1;
91 else
92 min = i+1;
93 }
94
95 return NULL;
96}
unsigned long DWORD
Definition: ntddk_ex.h:95
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static const tag_desc_t tag_descs[]
Definition: htmlelem.c:51
#define min(a, b)
Definition: monoChain.cc:55
#define strcmpW(s1, s2)
Definition: unicode.h:38
#define max(a, b)
Definition: svc.c:63

Referenced by HTMLElement_Create().

◆ HTMLAttributeCollection2_AddRef()

static ULONG WINAPI HTMLAttributeCollection2_AddRef ( IHTMLAttributeCollection2 *  iface)
static

Definition at line 4528 of file htmlelem.c.

4529{
4531 return IHTMLAttributeCollection_AddRef(&This->IHTMLAttributeCollection_iface);
4532}
static HTMLAttributeCollection * impl_from_IHTMLAttributeCollection2(IHTMLAttributeCollection2 *iface)
Definition: htmlelem.c:4517

◆ HTMLAttributeCollection2_GetIDsOfNames()

static HRESULT WINAPI HTMLAttributeCollection2_GetIDsOfNames ( IHTMLAttributeCollection2 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 4553 of file htmlelem.c.

4555{
4557 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
4558 lcid, rgDispId);
4559}
REFIID riid
Definition: atlbase.h:39

◆ HTMLAttributeCollection2_getNamedItem()

static HRESULT WINAPI HTMLAttributeCollection2_getNamedItem ( IHTMLAttributeCollection2 *  iface,
BSTR  bstrName,
IHTMLDOMAttribute **  newretNode 
)
static

Definition at line 4570 of file htmlelem.c.

4572{
4575 DISPID id;
4576 HRESULT hres;
4577
4578 TRACE("(%p)->(%s %p)\n", This, debugstr_w(bstrName), newretNode);
4579
4580 hres = get_attr_dispid_by_name(This, bstrName, &id);
4581 if(hres == DISP_E_UNKNOWNNAME) {
4582 *newretNode = NULL;
4583 return S_OK;
4584 } else if(FAILED(hres)) {
4585 return hres;
4586 }
4587
4588 hres = get_domattr(This, id, NULL, &attr);
4589 if(FAILED(hres))
4590 return hres;
4591
4592 *newretNode = &attr->IHTMLDOMAttribute_iface;
4593 return S_OK;
4594}
static HRESULT get_domattr(HTMLAttributeCollection *This, DISPID id, LONG *list_pos, HTMLDOMAttribute **attr)
Definition: htmlelem.c:4420
static HRESULT get_attr_dispid_by_name(HTMLAttributeCollection *This, BSTR name, DISPID *id)
Definition: htmlelem.c:4394

◆ HTMLAttributeCollection2_GetTypeInfo()

static HRESULT WINAPI HTMLAttributeCollection2_GetTypeInfo ( IHTMLAttributeCollection2 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 4546 of file htmlelem.c.

4548{
4550 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
4551}

◆ HTMLAttributeCollection2_GetTypeInfoCount()

static HRESULT WINAPI HTMLAttributeCollection2_GetTypeInfoCount ( IHTMLAttributeCollection2 *  iface,
UINT pctinfo 
)
static

Definition at line 4540 of file htmlelem.c.

4541{
4543 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
4544}

◆ HTMLAttributeCollection2_Invoke()

static HRESULT WINAPI HTMLAttributeCollection2_Invoke ( IHTMLAttributeCollection2 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 4561 of file htmlelem.c.

4564{
4566 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
4567 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4568}
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:531

◆ HTMLAttributeCollection2_QueryInterface()

static HRESULT WINAPI HTMLAttributeCollection2_QueryInterface ( IHTMLAttributeCollection2 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 4522 of file htmlelem.c.

4523{
4525 return IHTMLAttributeCollection_QueryInterface(&This->IHTMLAttributeCollection_iface, riid, ppv);
4526}
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ HTMLAttributeCollection2_Release()

static ULONG WINAPI HTMLAttributeCollection2_Release ( IHTMLAttributeCollection2 *  iface)
static

Definition at line 4534 of file htmlelem.c.

4535{
4537 return IHTMLAttributeCollection_Release(&This->IHTMLAttributeCollection_iface);
4538}

◆ HTMLAttributeCollection2_removeNamedItem()

static HRESULT WINAPI HTMLAttributeCollection2_removeNamedItem ( IHTMLAttributeCollection2 *  iface,
BSTR  bstrName,
IHTMLDOMAttribute **  newretNode 
)
static

Definition at line 4604 of file htmlelem.c.

4606{
4608 FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrName), newretNode);
4609 return E_NOTIMPL;
4610}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ HTMLAttributeCollection2_setNamedItem()

static HRESULT WINAPI HTMLAttributeCollection2_setNamedItem ( IHTMLAttributeCollection2 *  iface,
IHTMLDOMAttribute *  ppNode,
IHTMLDOMAttribute **  newretNode 
)
static

Definition at line 4596 of file htmlelem.c.

4598{
4600 FIXME("(%p)->(%p %p)\n", This, ppNode, newretNode);
4601 return E_NOTIMPL;
4602}

◆ HTMLAttributeCollection3_AddRef()

static ULONG WINAPI HTMLAttributeCollection3_AddRef ( IHTMLAttributeCollection3 *  iface)
static

Definition at line 4636 of file htmlelem.c.

4637{
4639 return IHTMLAttributeCollection_AddRef(&This->IHTMLAttributeCollection_iface);
4640}
static HTMLAttributeCollection * impl_from_IHTMLAttributeCollection3(IHTMLAttributeCollection3 *iface)
Definition: htmlelem.c:4625

◆ HTMLAttributeCollection3_get_length()

static HRESULT WINAPI HTMLAttributeCollection3_get_length ( IHTMLAttributeCollection3 *  iface,
LONG p 
)
static

Definition at line 4724 of file htmlelem.c.

4725{
4727 return IHTMLAttributeCollection_get_length(&This->IHTMLAttributeCollection_iface, p);
4728}

◆ HTMLAttributeCollection3_GetIDsOfNames()

static HRESULT WINAPI HTMLAttributeCollection3_GetIDsOfNames ( IHTMLAttributeCollection3 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 4661 of file htmlelem.c.

4663{
4665 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
4666 lcid, rgDispId);
4667}

◆ HTMLAttributeCollection3_getNamedItem()

static HRESULT WINAPI HTMLAttributeCollection3_getNamedItem ( IHTMLAttributeCollection3 *  iface,
BSTR  bstrName,
IHTMLDOMAttribute **  ppNodeOut 
)
static

Definition at line 4678 of file htmlelem.c.

4680{
4682 return IHTMLAttributeCollection2_getNamedItem(&This->IHTMLAttributeCollection2_iface, bstrName, ppNodeOut);
4683}

◆ HTMLAttributeCollection3_GetTypeInfo()

static HRESULT WINAPI HTMLAttributeCollection3_GetTypeInfo ( IHTMLAttributeCollection3 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 4654 of file htmlelem.c.

4656{
4658 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
4659}

◆ HTMLAttributeCollection3_GetTypeInfoCount()

static HRESULT WINAPI HTMLAttributeCollection3_GetTypeInfoCount ( IHTMLAttributeCollection3 *  iface,
UINT pctinfo 
)
static

Definition at line 4648 of file htmlelem.c.

4649{
4651 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
4652}

◆ HTMLAttributeCollection3_Invoke()

static HRESULT WINAPI HTMLAttributeCollection3_Invoke ( IHTMLAttributeCollection3 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 4669 of file htmlelem.c.

4672{
4674 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
4675 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4676}

◆ HTMLAttributeCollection3_item()

static HRESULT WINAPI HTMLAttributeCollection3_item ( IHTMLAttributeCollection3 *  iface,
LONG  index,
IHTMLDOMAttribute **  ppNodeOut 
)
static

Definition at line 4701 of file htmlelem.c.

4702{
4705 DISPID id;
4706 HRESULT hres;
4707
4708 TRACE("(%p)->(%d %p)\n", This, index, ppNodeOut);
4709
4712 return E_INVALIDARG;
4713 if(FAILED(hres))
4714 return hres;
4715
4716 hres = get_domattr(This, id, NULL, &attr);
4717 if(FAILED(hres))
4718 return hres;
4719
4720 *ppNodeOut = &attr->IHTMLDOMAttribute_iface;
4721 return S_OK;
4722}
#define E_INVALIDARG
Definition: ddrawi.h:101
GLuint index
Definition: glext.h:6031

◆ HTMLAttributeCollection3_QueryInterface()

static HRESULT WINAPI HTMLAttributeCollection3_QueryInterface ( IHTMLAttributeCollection3 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 4630 of file htmlelem.c.

4631{
4633 return IHTMLAttributeCollection_QueryInterface(&This->IHTMLAttributeCollection_iface, riid, ppv);
4634}

◆ HTMLAttributeCollection3_Release()

static ULONG WINAPI HTMLAttributeCollection3_Release ( IHTMLAttributeCollection3 *  iface)
static

Definition at line 4642 of file htmlelem.c.

4643{
4645 return IHTMLAttributeCollection_Release(&This->IHTMLAttributeCollection_iface);
4646}

◆ HTMLAttributeCollection3_removeNamedItem()

static HRESULT WINAPI HTMLAttributeCollection3_removeNamedItem ( IHTMLAttributeCollection3 *  iface,
BSTR  bstrName,
IHTMLDOMAttribute **  ppNodeOut 
)
static

Definition at line 4693 of file htmlelem.c.

4695{
4697 FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrName), ppNodeOut);
4698 return E_NOTIMPL;
4699}

◆ HTMLAttributeCollection3_setNamedItem()

static HRESULT WINAPI HTMLAttributeCollection3_setNamedItem ( IHTMLAttributeCollection3 *  iface,
IHTMLDOMAttribute *  pNodeIn,
IHTMLDOMAttribute **  ppNodeOut 
)
static

Definition at line 4685 of file htmlelem.c.

4687{
4689 FIXME("(%p)->(%p %p)\n", This, pNodeIn, ppNodeOut);
4690 return E_NOTIMPL;
4691}

◆ HTMLAttributeCollection__newEnum()

static HRESULT WINAPI HTMLAttributeCollection__newEnum ( IHTMLAttributeCollection *  iface,
IUnknown **  p 
)
static

Definition at line 4464 of file htmlelem.c.

4465{
4467 FIXME("(%p)->(%p)\n", This, p);
4468 return E_NOTIMPL;
4469}
static HTMLAttributeCollection * impl_from_IHTMLAttributeCollection(IHTMLAttributeCollection *iface)
Definition: htmlelem.c:4271

◆ HTMLAttributeCollection_AddRef()

static ULONG WINAPI HTMLAttributeCollection_AddRef ( IHTMLAttributeCollection *  iface)
static

Definition at line 4302 of file htmlelem.c.

4303{
4306
4307 TRACE("(%p) ref=%d\n", This, ref);
4308
4309 return ref;
4310}
#define InterlockedIncrement
Definition: armddk.h:53
Definition: send.c:48

◆ HTMLAttributeCollection_from_DispatchEx()

static HTMLAttributeCollection * HTMLAttributeCollection_from_DispatchEx ( DispatchEx iface)
inlinestatic

Definition at line 4745 of file htmlelem.c.

4746{
4747 return CONTAINING_RECORD(iface, HTMLAttributeCollection, dispex);
4748}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by HTMLAttributeCollection_get_dispid(), and HTMLAttributeCollection_invoke().

◆ HTMLAttributeCollection_get_dispid()

static HRESULT HTMLAttributeCollection_get_dispid ( DispatchEx dispex,
BSTR  name,
DWORD  flags,
DISPID dispid 
)
static

Definition at line 4750 of file htmlelem.c.

4751{
4754 LONG pos;
4755 HRESULT hres;
4756
4757 TRACE("(%p)->(%s %x %p)\n", This, debugstr_w(name), flags, dispid);
4758
4760 if(FAILED(hres))
4761 return hres;
4762
4763 hres = get_domattr(This, *dispid, &pos, &attr);
4764 if(FAILED(hres))
4765 return hres;
4766 IHTMLDOMAttribute_Release(&attr->IHTMLDOMAttribute_iface);
4767
4768 *dispid = MSHTML_DISPID_CUSTOM_MIN+pos;
4769 return S_OK;
4770}
static HTMLAttributeCollection * HTMLAttributeCollection_from_DispatchEx(DispatchEx *iface)
Definition: htmlelem.c:4745
#define MSHTML_DISPID_CUSTOM_MIN

◆ HTMLAttributeCollection_get_length()

static HRESULT WINAPI HTMLAttributeCollection_get_length ( IHTMLAttributeCollection *  iface,
LONG p 
)
static

Definition at line 4452 of file htmlelem.c.

4453{
4455 HRESULT hres;
4456
4457 TRACE("(%p)->(%p)\n", This, p);
4458
4459 *p = -1;
4461 return hres;
4462}

◆ HTMLAttributeCollection_GetIDsOfNames()

static HRESULT WINAPI HTMLAttributeCollection_GetIDsOfNames ( IHTMLAttributeCollection *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 4347 of file htmlelem.c.

4349{
4351 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
4352 lcid, rgDispId);
4353}

◆ HTMLAttributeCollection_GetTypeInfo()

static HRESULT WINAPI HTMLAttributeCollection_GetTypeInfo ( IHTMLAttributeCollection *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 4340 of file htmlelem.c.

4342{
4344 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
4345}

◆ HTMLAttributeCollection_GetTypeInfoCount()

static HRESULT WINAPI HTMLAttributeCollection_GetTypeInfoCount ( IHTMLAttributeCollection *  iface,
UINT pctinfo 
)
static

Definition at line 4334 of file htmlelem.c.

4335{
4337 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
4338}

◆ HTMLAttributeCollection_invoke()

static HRESULT HTMLAttributeCollection_invoke ( DispatchEx dispex,
DISPID  id,
LCID  lcid,
WORD  flags,
DISPPARAMS *  params,
VARIANT res,
EXCEPINFO *  ei,
IServiceProvider caller 
)
static

Definition at line 4772 of file htmlelem.c.

4774{
4776
4777 TRACE("(%p)->(%x %x %x %p %p %p %p)\n", This, id, lcid, flags, params, res, ei, caller);
4778
4779 switch(flags) {
4780 case DISPATCH_PROPERTYGET: {
4781 HTMLDOMAttribute *iter;
4782 DWORD pos;
4783
4785
4787 if(!pos) {
4788 IHTMLDOMAttribute_AddRef(&iter->IHTMLDOMAttribute_iface);
4789 V_VT(res) = VT_DISPATCH;
4791 return S_OK;
4792 }
4793 pos--;
4794 }
4795
4796 WARN("invalid arg\n");
4797 return E_INVALIDARG;
4798 }
4799
4800 default:
4801 FIXME("unimplemented flags %x\n", flags);
4802 return E_NOTIMPL;
4803 }
4804}
GLuint res
Definition: glext.h:9613
GLenum const GLfloat * params
Definition: glext.h:5645
IHTMLDOMAttribute IHTMLDOMAttribute_iface

◆ HTMLAttributeCollection_Invoke()

static HRESULT WINAPI HTMLAttributeCollection_Invoke ( IHTMLAttributeCollection *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 4355 of file htmlelem.c.

4358{
4360 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
4361 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4362}

◆ HTMLAttributeCollection_item()

static HRESULT WINAPI HTMLAttributeCollection_item ( IHTMLAttributeCollection *  iface,
VARIANT name,
IDispatch **  ppItem 
)
static

Definition at line 4471 of file htmlelem.c.

4472{
4475 DISPID id;
4476 HRESULT hres;
4477
4478 TRACE("(%p)->(%s %p)\n", This, debugstr_variant(name), ppItem);
4479
4480 switch(V_VT(name)) {
4481 case VT_I4:
4483 break;
4484 case VT_BSTR:
4486 break;
4487 default:
4488 FIXME("unsupported name %s\n", debugstr_variant(name));
4489 hres = E_NOTIMPL;
4490 }
4492 return E_INVALIDARG;
4493 if(FAILED(hres))
4494 return hres;
4495
4496 hres = get_domattr(This, id, NULL, &attr);
4497 if(FAILED(hres))
4498 return hres;
4499
4500 *ppItem = (IDispatch*)&attr->IHTMLDOMAttribute_iface;
4501 return S_OK;
4502}
@ VT_I4
Definition: compat.h:2298
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define V_I4(A)
Definition: oleauto.h:247

◆ HTMLAttributeCollection_QueryInterface()

static HRESULT WINAPI HTMLAttributeCollection_QueryInterface ( IHTMLAttributeCollection *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 4276 of file htmlelem.c.

4277{
4279
4280 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
4281
4283 *ppv = &This->IHTMLAttributeCollection_iface;
4284 }else if(IsEqualGUID(&IID_IHTMLAttributeCollection, riid)) {
4285 *ppv = &This->IHTMLAttributeCollection_iface;
4286 }else if(IsEqualGUID(&IID_IHTMLAttributeCollection2, riid)) {
4287 *ppv = &This->IHTMLAttributeCollection2_iface;
4288 }else if(IsEqualGUID(&IID_IHTMLAttributeCollection3, riid)) {
4289 *ppv = &This->IHTMLAttributeCollection3_iface;
4290 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
4291 return *ppv ? S_OK : E_NOINTERFACE;
4292 }else {
4293 *ppv = NULL;
4294 WARN("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
4295 return E_NOINTERFACE;
4296 }
4297
4298 IUnknown_AddRef((IUnknown*)*ppv);
4299 return S_OK;
4300}
const GUID IID_IUnknown
const char * debugstr_mshtml_guid(const GUID *iid)
Definition: main.c:542
BOOL dispex_query_interface(DispatchEx *This, REFIID riid, void **ppv)
Definition: dispex.c:1656
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ HTMLAttributeCollection_Release()

static ULONG WINAPI HTMLAttributeCollection_Release ( IHTMLAttributeCollection *  iface)
static

Definition at line 4312 of file htmlelem.c.

4313{
4316
4317 TRACE("(%p) ref=%d\n", This, ref);
4318
4319 if(!ref) {
4320 while(!list_empty(&This->attrs)) {
4322
4323 list_remove(&attr->entry);
4324 attr->elem = NULL;
4325 IHTMLDOMAttribute_Release(&attr->IHTMLDOMAttribute_iface);
4326 }
4327
4328 heap_free(This);
4329 }
4330
4331 return ref;
4332}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define InterlockedDecrement
Definition: armddk.h:52
static void list_remove(struct list_entry *entry)
Definition: list.h:90
static int list_empty(struct list_entry *head)
Definition: list.h:58
Definition: list.h:15
#define LIST_ENTRY(type)
Definition: queue.h:175

◆ HTMLElement2_addBehavior()

static HRESULT WINAPI HTMLElement2_addBehavior ( IHTMLElement2 *  iface,
BSTR  bstrUrl,
VARIANT pvarFactory,
LONG pCookie 
)
static

Definition at line 2874 of file htmlelem.c.

2876{
2878 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(bstrUrl), pvarFactory, pCookie);
2879 return E_NOTIMPL;
2880}
static HTMLElement * impl_from_IHTMLElement2(IHTMLElement2 *iface)
Definition: htmlelem.c:1967

◆ HTMLElement2_addFilter()

static HRESULT WINAPI HTMLElement2_addFilter ( IHTMLElement2 *  iface,
IUnknown pUnk 
)
static

Definition at line 2478 of file htmlelem.c.

2479{
2481 FIXME("(%p)->(%p)\n", This, pUnk);
2482 return E_NOTIMPL;
2483}
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
Definition: dplayx.c:30

◆ HTMLElement2_AddRef()

static ULONG WINAPI HTMLElement2_AddRef ( IHTMLElement2 *  iface)
static

Definition at line 1979 of file htmlelem.c.

1980{
1982 return IHTMLElement_AddRef(&This->IHTMLElement_iface);
1983}

◆ HTMLElement2_applyElement()

static HRESULT WINAPI HTMLElement2_applyElement ( IHTMLElement2 *  iface,
IHTMLElement *  apply,
BSTR  where,
IHTMLElement **  applied 
)
static

Definition at line 2844 of file htmlelem.c.

2846{
2848 FIXME("(%p)->(%p %s %p)\n", This, apply, debugstr_w(where), applied);
2849 return E_NOTIMPL;
2850}

◆ HTMLElement2_attachEvent()

static HRESULT WINAPI HTMLElement2_attachEvent ( IHTMLElement2 *  iface,
BSTR  event,
IDispatch pDisp,
VARIANT_BOOL pfResult 
)
static

Definition at line 2544 of file htmlelem.c.

2546{
2548
2549 TRACE("(%p)->(%s %p %p)\n", This, debugstr_w(event), pDisp, pfResult);
2550
2551 return attach_event(&This->node.event_target, event, pDisp, pfResult);
2552}
struct _cl_event * event
Definition: glext.h:7739
HRESULT attach_event(EventTarget *event_target, BSTR name, IDispatch *disp, VARIANT_BOOL *res)
Definition: htmlevent.c:1469

◆ HTMLElement2_blur()

static HRESULT WINAPI HTMLElement2_blur ( IHTMLElement2 *  iface)
static

Definition at line 2462 of file htmlelem.c.

2463{
2465 nsresult nsres;
2466
2467 TRACE("(%p)\n", This);
2468
2469 nsres = nsIDOMHTMLElement_Blur(This->nselem);
2470 if(NS_FAILED(nsres)) {
2471 ERR("Blur failed: %08x\n", nsres);
2472 return E_FAIL;
2473 }
2474
2475 return S_OK;
2476}

◆ HTMLElement2_clearAttributes()

static HRESULT WINAPI HTMLElement2_clearAttributes ( IHTMLElement2 *  iface)
static

Definition at line 2793 of file htmlelem.c.

2794{
2796 FIXME("(%p)\n", This);
2797 return E_NOTIMPL;
2798}

◆ HTMLElement2_componentFromPoint()

static HRESULT WINAPI HTMLElement2_componentFromPoint ( IHTMLElement2 *  iface,
LONG  x,
LONG  y,
BSTR component 
)
static

Definition at line 2057 of file htmlelem.c.

2059{
2061 FIXME("(%p)->(%d %d %p)\n", This, x, y, component);
2062 return E_NOTIMPL;
2063}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548

◆ HTMLElement2_createControlRange()

static HRESULT WINAPI HTMLElement2_createControlRange ( IHTMLElement2 *  iface,
IDispatch **  range 
)
static

Definition at line 2691 of file htmlelem.c.

2692{
2694 FIXME("(%p)->(%p)\n", This, range);
2695 return E_NOTIMPL;
2696}
GLenum GLint * range
Definition: glext.h:7539

◆ HTMLElement2_detachEvent()

static HRESULT WINAPI HTMLElement2_detachEvent ( IHTMLElement2 *  iface,
BSTR  event,
IDispatch pDisp 
)
static

Definition at line 2554 of file htmlelem.c.

2555{
2557
2558 TRACE("(%p)->(%s %p)\n", This, debugstr_w(event), pDisp);
2559
2560 return detach_event(&This->node.event_target, event, pDisp);
2561}
HRESULT detach_event(EventTarget *event_target, BSTR name, IDispatch *disp)
Definition: htmlevent.c:1504

◆ HTMLElement2_doScroll()

static HRESULT WINAPI HTMLElement2_doScroll ( IHTMLElement2 *  iface,
VARIANT  component 
)
static

Definition at line 2065 of file htmlelem.c.

2066{
2068
2069 TRACE("(%p)->(%s)\n", This, debugstr_variant(&component));
2070
2071 if(!This->node.doc->content_ready
2072 || !This->node.doc->basedoc.doc_obj->in_place_active)
2073 return E_PENDING;
2074
2075 WARN("stub\n");
2076 return S_OK;
2077}
#define E_PENDING
Definition: dinput.h:172

◆ HTMLElement2_focus()

static HRESULT WINAPI HTMLElement2_focus ( IHTMLElement2 *  iface)
static

Definition at line 2377 of file htmlelem.c.

2378{
2380 nsresult nsres;
2381
2382 TRACE("(%p)\n", This);
2383
2384 nsres = nsIDOMHTMLElement_Focus(This->nselem);
2385 if(NS_FAILED(nsres))
2386 ERR("Focus failed: %08x\n", nsres);
2387
2388 return S_OK;
2389}

◆ HTMLElement2_get_accessKey()

static HRESULT WINAPI HTMLElement2_get_accessKey ( IHTMLElement2 *  iface,
BSTR p 
)
static

Definition at line 2405 of file htmlelem.c.

2406{
2408 FIXME("(%p)->(%p)\n", This, p);
2409 return E_NOTIMPL;
2410}

◆ HTMLElement2_get_behaviorUrns()

static HRESULT WINAPI HTMLElement2_get_behaviorUrns ( IHTMLElement2 *  iface,
IDispatch **  p 
)
static

Definition at line 2912 of file htmlelem.c.

2913{
2915 FIXME("(%p)->(%p)\n", This, p);
2916 return E_NOTIMPL;
2917}

◆ HTMLElement2_get_canHandleChildren()

static HRESULT WINAPI HTMLElement2_get_canHandleChildren ( IHTMLElement2 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 2867 of file htmlelem.c.

2868{
2870 FIXME("(%p)->(%p)\n", This, p);
2871 return E_NOTIMPL;
2872}

◆ HTMLElement2_get_clientHeight()

static HRESULT WINAPI HTMLElement2_get_clientHeight ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2492 of file htmlelem.c.

2493{
2495 nsresult nsres;
2496
2497 TRACE("(%p)->(%p)\n", This, p);
2498
2499 nsres = nsIDOMHTMLElement_GetClientHeight(This->nselem, p);
2500 assert(nsres == NS_OK);
2501 return S_OK;
2502}

◆ HTMLElement2_get_clientLeft()

static HRESULT WINAPI HTMLElement2_get_clientLeft ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2530 of file htmlelem.c.

2531{
2533 nsresult nsres;
2534
2535 TRACE("(%p)->(%p)\n", This, p);
2536
2537 nsres = nsIDOMHTMLElement_GetClientLeft(This->nselem, p);
2538 assert(nsres == NS_OK);
2539
2540 TRACE("*p = %d\n", *p);
2541 return S_OK;
2542}

◆ HTMLElement2_get_clientTop()

static HRESULT WINAPI HTMLElement2_get_clientTop ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2516 of file htmlelem.c.

2517{
2519 nsresult nsres;
2520
2521 TRACE("(%p)->(%p)\n", This, p);
2522
2523 nsres = nsIDOMHTMLElement_GetClientTop(This->nselem, p);
2524 assert(nsres == NS_OK);
2525
2526 TRACE("*p = %d\n", *p);
2527 return S_OK;
2528}

◆ HTMLElement2_get_clientWidth()

static HRESULT WINAPI HTMLElement2_get_clientWidth ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2504 of file htmlelem.c.

2505{
2507 nsresult nsres;
2508
2509 TRACE("(%p)->(%p)\n", This, p);
2510
2511 nsres = nsIDOMHTMLElement_GetClientWidth(This->nselem, p);
2512 assert(nsres == NS_OK);
2513 return S_OK;
2514}

◆ HTMLElement2_get_currentStyle()

static HRESULT WINAPI HTMLElement2_get_currentStyle ( IHTMLElement2 *  iface,
IHTMLCurrentStyle **  p 
)
static

Definition at line 2269 of file htmlelem.c.

2270{
2272
2273 TRACE("(%p)->(%p)\n", This, p);
2274
2276}
HRESULT HTMLCurrentStyle_Create(HTMLElement *elem, IHTMLCurrentStyle **p)

◆ HTMLElement2_get_dir()

static HRESULT WINAPI HTMLElement2_get_dir ( IHTMLElement2 *  iface,
BSTR p 
)
static

Definition at line 2673 of file htmlelem.c.

2674{
2676 nsAString dir_str;
2677 nsresult nsres;
2678
2679 TRACE("(%p)->(%p)\n", This, p);
2680
2681 if(!This->nselem) {
2682 *p = NULL;
2683 return S_OK;
2684 }
2685
2686 nsAString_Init(&dir_str, NULL);
2687 nsres = nsIDOMHTMLElement_GetDir(This->nselem, &dir_str);
2688 return return_nsstr(nsres, &dir_str, p);
2689}
HRESULT return_nsstr(nsresult, nsAString *, BSTR *) DECLSPEC_HIDDEN
Definition: nsembed.c:841

◆ HTMLElement2_get_onbeforecopy()

static HRESULT WINAPI HTMLElement2_get_onbeforecopy ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2216 of file htmlelem.c.

2217{
2219 FIXME("(%p)->(%p)\n", This, p);
2220 return E_NOTIMPL;
2221}

◆ HTMLElement2_get_onbeforecut()

static HRESULT WINAPI HTMLElement2_get_onbeforecut ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2188 of file htmlelem.c.

2189{
2191 FIXME("(%p)->(%p)\n", This, p);
2192 return E_NOTIMPL;
2193}

◆ HTMLElement2_get_onbeforeeditfocus()

static HRESULT WINAPI HTMLElement2_get_onbeforeeditfocus ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2940 of file htmlelem.c.

2941{
2943 FIXME("(%p)->(%p)\n", This, p);
2944 return E_NOTIMPL;
2945}

◆ HTMLElement2_get_onbeforepaste()

static HRESULT WINAPI HTMLElement2_get_onbeforepaste ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2244 of file htmlelem.c.

2245{
2247 FIXME("(%p)->(%p)\n", This, p);
2248 return E_NOTIMPL;
2249}

◆ HTMLElement2_get_onblur()

static HRESULT WINAPI HTMLElement2_get_onblur ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2421 of file htmlelem.c.

2422{
2424
2425 TRACE("(%p)->(%p)\n", This, p);
2426
2427 return get_node_event(&This->node, EVENTID_BLUR, p);
2428}
@ EVENTID_BLUR
Definition: htmlevent.h:24
static HRESULT get_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:85

◆ HTMLElement2_get_oncellchange()

static HRESULT WINAPI HTMLElement2_get_oncellchange ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2642 of file htmlelem.c.

2643{
2645 FIXME("(%p)->(%p)\n", This, p);
2646 return E_NOTIMPL;
2647}

◆ HTMLElement2_get_oncontextmenu()

static HRESULT WINAPI HTMLElement2_get_oncontextmenu ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2814 of file htmlelem.c.

2815{
2817 FIXME("(%p)->(%p)\n", This, p);
2818 return E_NOTIMPL;
2819}

◆ HTMLElement2_get_oncopy()

static HRESULT WINAPI HTMLElement2_get_oncopy ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2230 of file htmlelem.c.

2231{
2233 FIXME("(%p)->(%p)\n", This, p);
2234 return E_NOTIMPL;
2235}

◆ HTMLElement2_get_oncut()

static HRESULT WINAPI HTMLElement2_get_oncut ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2202 of file htmlelem.c.

2203{
2205 FIXME("(%p)->(%p)\n", This, p);
2206 return E_NOTIMPL;
2207}

◆ HTMLElement2_get_ondrag()

static HRESULT WINAPI HTMLElement2_get_ondrag ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2102 of file htmlelem.c.

2103{
2105
2106 TRACE("(%p)->(%p)\n", This, p);
2107
2108 return get_node_event(&This->node, EVENTID_DRAG, p);
2109}
@ EVENTID_DRAG
Definition: htmlevent.h:30

◆ HTMLElement2_get_ondragend()

static HRESULT WINAPI HTMLElement2_get_ondragend ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2118 of file htmlelem.c.

2119{
2121 FIXME("(%p)->(%p)\n", This, p);
2122 return E_NOTIMPL;
2123}

◆ HTMLElement2_get_ondragenter()

static HRESULT WINAPI HTMLElement2_get_ondragenter ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2132 of file htmlelem.c.

2133{
2135 FIXME("(%p)->(%p)\n", This, p);
2136 return E_NOTIMPL;
2137}

◆ HTMLElement2_get_ondragleave()

static HRESULT WINAPI HTMLElement2_get_ondragleave ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2160 of file htmlelem.c.

2161{
2163 FIXME("(%p)->(%p)\n", This, p);
2164 return E_NOTIMPL;
2165}

◆ HTMLElement2_get_ondragover()

static HRESULT WINAPI HTMLElement2_get_ondragover ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2146 of file htmlelem.c.

2147{
2149 FIXME("(%p)->(%p)\n", This, p);
2150 return E_NOTIMPL;
2151}

◆ HTMLElement2_get_ondrop()

static HRESULT WINAPI HTMLElement2_get_ondrop ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2174 of file htmlelem.c.

2175{
2177 FIXME("(%p)->(%p)\n", This, p);
2178 return E_NOTIMPL;
2179}

◆ HTMLElement2_get_onfocus()

static HRESULT WINAPI HTMLElement2_get_onfocus ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2439 of file htmlelem.c.

2440{
2442
2443 TRACE("(%p)->(%p)\n", This, p);
2444
2445 return get_node_event(&This->node, EVENTID_FOCUS, p);
2446}
@ EVENTID_FOCUS
Definition: htmlevent.h:33

◆ HTMLElement2_get_onlosecapture()

static HRESULT WINAPI HTMLElement2_get_onlosecapture ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2050 of file htmlelem.c.

2051{
2053 FIXME("(%p)->(%p)\n", This, p);
2054 return E_NOTIMPL;
2055}

◆ HTMLElement2_get_onpaste()

static HRESULT WINAPI HTMLElement2_get_onpaste ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2260 of file htmlelem.c.

2261{
2263
2264 TRACE("(%p)->(%p)\n", This, p);
2265
2266 return get_node_event(&This->node, EVENTID_PASTE, p);
2267}
@ EVENTID_PASTE
Definition: htmlevent.h:46

◆ HTMLElement2_get_onpropertychange()

static HRESULT WINAPI HTMLElement2_get_onpropertychange ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2285 of file htmlelem.c.

2286{
2288 FIXME("(%p)->(%p)\n", This, p);
2289 return E_NOTIMPL;
2290}

◆ HTMLElement2_get_onreadystatechange()

static HRESULT WINAPI HTMLElement2_get_onreadystatechange ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2598 of file htmlelem.c.

2599{
2601
2602 TRACE("(%p)->(%p)\n", This, p);
2603
2605}
@ EVENTID_READYSTATECHANGE
Definition: htmlevent.h:47

◆ HTMLElement2_get_onresize()

static HRESULT WINAPI HTMLElement2_get_onresize ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2455 of file htmlelem.c.

2456{
2458 FIXME("(%p)->(%p)\n", This, p);
2459 return E_NOTIMPL;
2460}

◆ HTMLElement2_get_onrowsdelete()

static HRESULT WINAPI HTMLElement2_get_onrowsdelete ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2614 of file htmlelem.c.

2615{
2617 FIXME("(%p)->(%p)\n", This, p);
2618 return E_NOTIMPL;
2619}

◆ HTMLElement2_get_onrowsinserted()

static HRESULT WINAPI HTMLElement2_get_onrowsinserted ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2628 of file htmlelem.c.

2629{
2631 FIXME("(%p)->(%p)\n", This, p);
2632 return E_NOTIMPL;
2633}

◆ HTMLElement2_get_onscroll()

static HRESULT WINAPI HTMLElement2_get_onscroll ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2086 of file htmlelem.c.

2087{
2089 FIXME("(%p)->(%p)\n", This, p);
2090 return E_NOTIMPL;
2091}

◆ HTMLElement2_get_readyState()

static HRESULT WINAPI HTMLElement2_get_readyState ( IHTMLElement2 *  iface,
VARIANT p 
)
static

Definition at line 2563 of file htmlelem.c.

2564{
2566 BSTR str;
2567
2568 TRACE("(%p)->(%p)\n", This, p);
2569
2570 if(This->node.vtbl->get_readystate) {
2571 HRESULT hres;
2572
2573 hres = This->node.vtbl->get_readystate(&This->node, &str);
2574 if(FAILED(hres))
2575 return hres;
2576 }else {
2577 static const WCHAR completeW[] = {'c','o','m','p','l','e','t','e',0};
2578
2579 str = SysAllocString(completeW);
2580 if(!str)
2581 return E_OUTOFMEMORY;
2582 }
2583
2584 V_VT(p) = VT_BSTR;
2585 V_BSTR(p) = str;
2586 return S_OK;
2587}
OLECHAR * BSTR
Definition: compat.h:2293
const WCHAR * str

◆ HTMLElement2_get_readyStateValue()

static HRESULT WINAPI HTMLElement2_get_readyStateValue ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2947 of file htmlelem.c.

2948{
2950 FIXME("(%p)->(%p)\n", This, p);
2951 return E_NOTIMPL;
2952}

◆ HTMLElement2_get_runtimeStyle()

static HRESULT WINAPI HTMLElement2_get_runtimeStyle ( IHTMLElement2 *  iface,
IHTMLStyle **  p 
)
static

Definition at line 2890 of file htmlelem.c.

2891{
2893
2894 FIXME("(%p)->(%p): hack\n", This, p);
2895
2896 /* We can't implement correct behavior on top of Gecko (although we could
2897 try a bit harder). Making runtimeStyle behave like regular style is
2898 enough for most use cases. */
2899 if(!This->runtime_style) {
2900 HRESULT hres;
2901
2902 hres = HTMLStyle_Create(This, &This->runtime_style);
2903 if(FAILED(hres))
2904 return hres;
2905 }
2906
2907 *p = &This->runtime_style->IHTMLStyle_iface;
2908 IHTMLStyle_AddRef(*p);
2909 return S_OK;
2910}
HRESULT HTMLStyle_Create(HTMLElement *elem, HTMLStyle **ret)
Definition: htmlstyle.c:3188

◆ HTMLElement2_get_scopeName()

static HRESULT WINAPI HTMLElement2_get_scopeName ( IHTMLElement2 *  iface,
BSTR p 
)
static

Definition at line 2022 of file htmlelem.c.

2023{
2025 FIXME("(%p)->(%p)\n", This, p);
2026 return E_NOTIMPL;
2027}

◆ HTMLElement2_get_scrollHeight()

static HRESULT WINAPI HTMLElement2_get_scrollHeight ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2698 of file htmlelem.c.

2699{
2701 nsresult nsres;
2702
2703 TRACE("(%p)->(%p)\n", This, p);
2704
2705 nsres = nsIDOMHTMLElement_GetScrollHeight(This->nselem, p);
2706 assert(nsres == NS_OK);
2707
2708 TRACE("*p = %d\n", *p);
2709 return S_OK;
2710}

◆ HTMLElement2_get_scrollLeft()

static HRESULT WINAPI HTMLElement2_get_scrollLeft ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2770 of file htmlelem.c.

2771{
2773 nsresult nsres;
2774
2775 TRACE("(%p)->(%p)\n", This, p);
2776
2777 if(!p)
2778 return E_INVALIDARG;
2779
2780 if(!This->nselem)
2781 {
2782 FIXME("NULL nselem\n");
2783 return E_NOTIMPL;
2784 }
2785
2786 nsres = nsIDOMHTMLElement_GetScrollLeft(This->nselem, p);
2787 assert(nsres == NS_OK);
2788
2789 TRACE("*p = %d\n", *p);
2790 return S_OK;
2791}

◆ HTMLElement2_get_scrollTop()

static HRESULT WINAPI HTMLElement2_get_scrollTop ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2741 of file htmlelem.c.

2742{
2744 nsresult nsres;
2745
2746 TRACE("(%p)->(%p)\n", This, p);
2747
2748 nsres = nsIDOMHTMLElement_GetScrollTop(This->nselem, p);
2749 assert(nsres == NS_OK);
2750
2751 TRACE("*p = %d\n", *p);
2752 return S_OK;
2753}

◆ HTMLElement2_get_scrollWidth()

static HRESULT WINAPI HTMLElement2_get_scrollWidth ( IHTMLElement2 *  iface,
LONG p 
)
static

Definition at line 2712 of file htmlelem.c.

2713{
2715 nsresult nsres;
2716
2717 TRACE("(%p)->(%p)\n", This, p);
2718
2719 nsres = nsIDOMHTMLElement_GetScrollWidth(This->nselem, p);
2720 assert(nsres == NS_OK);
2721
2722 TRACE("*p = %d\n", *p);
2723 return S_OK;
2724}

◆ HTMLElement2_get_tabIndex()

static HRESULT WINAPI HTMLElement2_get_tabIndex ( IHTMLElement2 *  iface,
short p 
)
static

Definition at line 2359 of file htmlelem.c.

2360{
2362 LONG index;
2363 nsresult nsres;
2364
2365 TRACE("(%p)->(%p)\n", This, p);
2366
2367 nsres = nsIDOMHTMLElement_GetTabIndex(This->nselem, &index);
2368 if(NS_FAILED(nsres)) {
2369 ERR("GetTabIndex failed: %08x\n", nsres);
2370 return E_FAIL;
2371 }
2372
2373 *p = index;
2374 return S_OK;
2375}
#define index(s, c)
Definition: various.h:29

◆ HTMLElement2_get_tagUrn()

static HRESULT WINAPI HTMLElement2_get_tagUrn ( IHTMLElement2 *  iface,
BSTR p 
)
static

Definition at line 2926 of file htmlelem.c.

2927{
2929 FIXME("(%p)->(%p)\n", This, p);
2930 return E_NOTIMPL;
2931}

◆ HTMLElement2_getAdjacentText()

static HRESULT WINAPI HTMLElement2_getAdjacentText ( IHTMLElement2 *  iface,
BSTR  where,
BSTR text 
)
static

Definition at line 2852 of file htmlelem.c.

2853{
2855 FIXME("(%p)->(%s %p)\n", This, debugstr_w(where), text);
2856 return E_NOTIMPL;
2857}
const WCHAR * text
Definition: package.c:1799

◆ HTMLElement2_getBoundingClientRect()

static HRESULT WINAPI HTMLElement2_getBoundingClientRect ( IHTMLElement2 *  iface,
IHTMLRect **  pRect 
)
static

Definition at line 2299 of file htmlelem.c.

2300{
2302 nsIDOMClientRect *nsrect;
2303 nsresult nsres;
2304 HRESULT hres;
2305
2306 TRACE("(%p)->(%p)\n", This, pRect);
2307
2308 nsres = nsIDOMHTMLElement_GetBoundingClientRect(This->nselem, &nsrect);
2309 if(NS_FAILED(nsres) || !nsrect) {
2310 ERR("GetBoindingClientRect failed: %08x\n", nsres);
2311 return E_FAIL;
2312 }
2313
2314 hres = create_html_rect(nsrect, pRect);
2315
2316 nsIDOMClientRect_Release(nsrect);
2317 return hres;
2318}
static HRESULT create_html_rect(nsIDOMClientRect *nsrect, IHTMLRect **ret)
Definition: htmlelem.c:518

◆ HTMLElement2_getClientRects()

static HRESULT WINAPI HTMLElement2_getClientRects ( IHTMLElement2 *  iface,
IHTMLRectCollection **  pRectCol 
)
static

Definition at line 2292 of file htmlelem.c.

2293{
2295 FIXME("(%p)->(%p)\n", This, pRectCol);
2296 return E_NOTIMPL;
2297}

◆ HTMLElement2_getElementsByTagName()

static HRESULT WINAPI HTMLElement2_getElementsByTagName ( IHTMLElement2 *  iface,
BSTR  v,
IHTMLElementCollection **  pelColl 
)
static

Definition at line 2954 of file htmlelem.c.

2956{
2958 nsIDOMHTMLCollection *nscol;
2959 nsAString tag_str;
2960 nsresult nsres;
2961
2962 TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
2963
2964 nsAString_InitDepend(&tag_str, v);
2965 nsres = nsIDOMHTMLElement_GetElementsByTagName(This->nselem, &tag_str, &nscol);
2966 nsAString_Finish(&tag_str);
2967 if(NS_FAILED(nsres)) {
2968 ERR("GetElementByTagName failed: %08x\n", nsres);
2969 return E_FAIL;
2970 }
2971
2972 *pelColl = create_collection_from_htmlcol(This->node.doc, nscol);
2973 nsIDOMHTMLCollection_Release(nscol);
2974 return S_OK;
2975}
const GLdouble * v
Definition: gl.h:2040
IHTMLElementCollection * create_collection_from_htmlcol(HTMLDocumentNode *doc, nsIDOMHTMLCollection *nscol)
Definition: htmlelemcol.c:705

◆ HTMLElement2_getExpression()

static HRESULT WINAPI HTMLElement2_getExpression ( IHTMLElement2 *  iface,
BSTR  propname,
VARIANT expression 
)
static

Definition at line 2329 of file htmlelem.c.

2331{
2333 FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), expression);
2334 return E_NOTIMPL;
2335}

◆ HTMLElement2_GetIDsOfNames()

static HRESULT WINAPI HTMLElement2_GetIDsOfNames ( IHTMLElement2 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 2004 of file htmlelem.c.

2007{
2009 return IDispatchEx_GetIDsOfNames(&This->node.event_target.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
2010 lcid, rgDispId);
2011}

◆ HTMLElement2_GetTypeInfo()

static HRESULT WINAPI HTMLElement2_GetTypeInfo ( IHTMLElement2 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 1997 of file htmlelem.c.

1999{
2001 return IDispatchEx_GetTypeInfo(&This->node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
2002}

◆ HTMLElement2_GetTypeInfoCount()

static HRESULT WINAPI HTMLElement2_GetTypeInfoCount ( IHTMLElement2 *  iface,
UINT pctinfo 
)
static

Definition at line 1991 of file htmlelem.c.

1992{
1994 return IDispatchEx_GetTypeInfoCount(&This->node.event_target.dispex.IDispatchEx_iface, pctinfo);
1995}

◆ HTMLElement2_insertAdjacentElement()

static HRESULT WINAPI HTMLElement2_insertAdjacentElement ( IHTMLElement2 *  iface,
BSTR  where,
IHTMLElement *  insertedElement,
IHTMLElement **  inserted 
)
static

Definition at line 2821 of file htmlelem.c.

2823{
2825 HTMLDOMNode *ret_node;
2827 HRESULT hres;
2828
2829 TRACE("(%p)->(%s %p %p)\n", This, debugstr_w(where), insertedElement, inserted);
2830
2831 elem = unsafe_impl_from_IHTMLElement(insertedElement);
2832 if(!elem)
2833 return E_INVALIDARG;
2834
2835 hres = insert_adjacent_node(This, where, elem->node.nsnode, &ret_node);
2836 if(FAILED(hres))
2837 return hres;
2838
2839 hres = IHTMLDOMNode_QueryInterface(&ret_node->IHTMLDOMNode_iface, &IID_IHTMLElement, (void**)inserted);
2840 IHTMLDOMNode_Release(&ret_node->IHTMLDOMNode_iface);
2841 return hres;
2842}
HTMLElement * unsafe_impl_from_IHTMLElement(IHTMLElement *iface)
Definition: htmlelem.c:1962
static HRESULT insert_adjacent_node(HTMLElement *This, const WCHAR *where, nsIDOMNode *nsnode, HTMLDOMNode **ret_node)
Definition: htmlelem.c:1496
IHTMLDOMNode IHTMLDOMNode_iface

◆ HTMLElement2_Invoke()

static HRESULT WINAPI HTMLElement2_Invoke ( IHTMLElement2 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 2013 of file htmlelem.c.

2016{
2018 return IDispatchEx_Invoke(&This->node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
2019 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
2020}

◆ HTMLElement2_mergeAttributes()

static HRESULT WINAPI HTMLElement2_mergeAttributes ( IHTMLElement2 *  iface,
IHTMLElement *  mergeThis 
)
static

Definition at line 2800 of file htmlelem.c.

2801{
2803 FIXME("(%p)->(%p)\n", This, mergeThis);
2804 return E_NOTIMPL;
2805}

◆ HTMLElement2_put_accessKey()

static HRESULT WINAPI HTMLElement2_put_accessKey ( IHTMLElement2 *  iface,
BSTR  v 
)
static

Definition at line 2391 of file htmlelem.c.

2392{
2394 VARIANT var;
2395
2396 static WCHAR accessKeyW[] = {'a','c','c','e','s','s','K','e','y',0};
2397
2398 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
2399
2400 V_VT(&var) = VT_BSTR;
2401 V_BSTR(&var) = v;
2402 return IHTMLElement_setAttribute(&This->IHTMLElement_iface, accessKeyW, var, 0);
2403}
const char * var
Definition: shader.c:5666

◆ HTMLElement2_put_dir()

static HRESULT WINAPI HTMLElement2_put_dir ( IHTMLElement2 *  iface,
BSTR  v 
)
static

Definition at line 2649 of file htmlelem.c.

2650{
2652 nsAString nsstr;
2653 nsresult nsres;
2654
2655 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
2656
2657 if(!This->nselem) {
2658 FIXME("Unsupported for comment nodes.\n");
2659 return S_OK;
2660 }
2661
2662 nsAString_InitDepend(&nsstr, v);
2663 nsres = nsIDOMHTMLElement_SetDir(This->nselem, &nsstr);
2664 nsAString_Finish(&nsstr);
2665 if(NS_FAILED(nsres)) {
2666 ERR("SetDir failed: %08x\n", nsres);
2667 return E_FAIL;
2668 }
2669
2670 return S_OK;
2671}

◆ HTMLElement2_put_onbeforecopy()

static HRESULT WINAPI HTMLElement2_put_onbeforecopy ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2209 of file htmlelem.c.

2210{
2212 FIXME("(%p)->()\n", This);
2213 return E_NOTIMPL;
2214}

◆ HTMLElement2_put_onbeforecut()

static HRESULT WINAPI HTMLElement2_put_onbeforecut ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2181 of file htmlelem.c.

2182{
2184 FIXME("(%p)->()\n", This);
2185 return E_NOTIMPL;
2186}

◆ HTMLElement2_put_onbeforeeditfocus()

static HRESULT WINAPI HTMLElement2_put_onbeforeeditfocus ( IHTMLElement2 *  iface,
VARIANT  vv 
)
static

Definition at line 2933 of file htmlelem.c.

2934{
2936 FIXME("(%p)->()\n", This);
2937 return E_NOTIMPL;
2938}

◆ HTMLElement2_put_onbeforepaste()

static HRESULT WINAPI HTMLElement2_put_onbeforepaste ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2237 of file htmlelem.c.

2238{
2240 FIXME("(%p)->()\n", This);
2241 return E_NOTIMPL;
2242}

◆ HTMLElement2_put_onblur()

static HRESULT WINAPI HTMLElement2_put_onblur ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2412 of file htmlelem.c.

2413{
2415
2416 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
2417
2418 return set_node_event(&This->node, EVENTID_BLUR, &v);
2419}
static HRESULT set_node_event(HTMLDOMNode *node, eventid_t eid, VARIANT *var)
Definition: htmlevent.h:80

◆ HTMLElement2_put_oncellchange()

static HRESULT WINAPI HTMLElement2_put_oncellchange ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2635 of file htmlelem.c.

2636{
2638 FIXME("(%p)->()\n", This);
2639 return E_NOTIMPL;
2640}

◆ HTMLElement2_put_oncontextmenu()

static HRESULT WINAPI HTMLElement2_put_oncontextmenu ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2807 of file htmlelem.c.

2808{
2810 FIXME("(%p)->()\n", This);
2811 return E_NOTIMPL;
2812}

◆ HTMLElement2_put_oncopy()

static HRESULT WINAPI HTMLElement2_put_oncopy ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2223 of file htmlelem.c.

2224{
2226 FIXME("(%p)->()\n", This);
2227 return E_NOTIMPL;
2228}

◆ HTMLElement2_put_oncut()

static HRESULT WINAPI HTMLElement2_put_oncut ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2195 of file htmlelem.c.

2196{
2198 FIXME("(%p)->()\n", This);
2199 return E_NOTIMPL;
2200}

◆ HTMLElement2_put_ondrag()

static HRESULT WINAPI HTMLElement2_put_ondrag ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2093 of file htmlelem.c.

2094{
2096
2097 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
2098
2099 return set_node_event(&This->node, EVENTID_DRAG, &v);
2100}

◆ HTMLElement2_put_ondragend()

static HRESULT WINAPI HTMLElement2_put_ondragend ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2111 of file htmlelem.c.

2112{
2114 FIXME("(%p)->()\n", This);
2115 return E_NOTIMPL;
2116}

◆ HTMLElement2_put_ondragenter()

static HRESULT WINAPI HTMLElement2_put_ondragenter ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2125 of file htmlelem.c.

2126{
2128 FIXME("(%p)->()\n", This);
2129 return E_NOTIMPL;
2130}

◆ HTMLElement2_put_ondragleave()

static HRESULT WINAPI HTMLElement2_put_ondragleave ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2153 of file htmlelem.c.

2154{
2156 FIXME("(%p)->()\n", This);
2157 return E_NOTIMPL;
2158}

◆ HTMLElement2_put_ondragover()

static HRESULT WINAPI HTMLElement2_put_ondragover ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2139 of file htmlelem.c.

2140{
2142 FIXME("(%p)->()\n", This);
2143 return E_NOTIMPL;
2144}

◆ HTMLElement2_put_ondrop()

static HRESULT WINAPI HTMLElement2_put_ondrop ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2167 of file htmlelem.c.

2168{
2170 FIXME("(%p)->()\n", This);
2171 return E_NOTIMPL;
2172}

◆ HTMLElement2_put_onfocus()

static HRESULT WINAPI HTMLElement2_put_onfocus ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2430 of file htmlelem.c.

2431{
2433
2434 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
2435
2436 return set_node_event(&This->node, EVENTID_FOCUS, &v);
2437}

◆ HTMLElement2_put_onlosecapture()

static HRESULT WINAPI HTMLElement2_put_onlosecapture ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2043 of file htmlelem.c.

2044{
2046 FIXME("(%p)->()\n", This);
2047 return E_NOTIMPL;
2048}

◆ HTMLElement2_put_onpaste()

static HRESULT WINAPI HTMLElement2_put_onpaste ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2251 of file htmlelem.c.

2252{
2254
2255 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
2256
2257 return set_node_event(&This->node, EVENTID_PASTE, &v);
2258}

◆ HTMLElement2_put_onpropertychange()

static HRESULT WINAPI HTMLElement2_put_onpropertychange ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2278 of file htmlelem.c.

2279{
2281 FIXME("(%p)->()\n", This);
2282 return E_NOTIMPL;
2283}

◆ HTMLElement2_put_onreadystatechange()

static HRESULT WINAPI HTMLElement2_put_onreadystatechange ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2589 of file htmlelem.c.

2590{
2592
2593 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
2594
2596}

◆ HTMLElement2_put_onresize()

static HRESULT WINAPI HTMLElement2_put_onresize ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2448 of file htmlelem.c.

2449{
2451 FIXME("(%p)->()\n", This);
2452 return E_NOTIMPL;
2453}

◆ HTMLElement2_put_onrowsdelete()

static HRESULT WINAPI HTMLElement2_put_onrowsdelete ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2607 of file htmlelem.c.

2608{
2610 FIXME("(%p)->()\n", This);
2611 return E_NOTIMPL;
2612}

◆ HTMLElement2_put_onrowsinserted()

static HRESULT WINAPI HTMLElement2_put_onrowsinserted ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2621 of file htmlelem.c.

2622{
2624 FIXME("(%p)->()\n", This);
2625 return E_NOTIMPL;
2626}

◆ HTMLElement2_put_onscroll()

static HRESULT WINAPI HTMLElement2_put_onscroll ( IHTMLElement2 *  iface,
VARIANT  v 
)
static

Definition at line 2079 of file htmlelem.c.

2080{
2082 FIXME("(%p)->()\n", This);
2083 return E_NOTIMPL;
2084}

◆ HTMLElement2_put_scrollLeft()

static HRESULT WINAPI HTMLElement2_put_scrollLeft ( IHTMLElement2 *  iface,
LONG  v 
)
static

Definition at line 2755 of file htmlelem.c.

2756{
2758
2759 TRACE("(%p)->(%d)\n", This, v);
2760
2761 if(!This->nselem) {
2762 FIXME("NULL nselem\n");
2763 return E_NOTIMPL;
2764 }
2765
2766 nsIDOMHTMLElement_SetScrollLeft(This->nselem, v);
2767 return S_OK;
2768}

◆ HTMLElement2_put_scrollTop()

static HRESULT WINAPI HTMLElement2_put_scrollTop ( IHTMLElement2 *  iface,
LONG  v 
)
static

Definition at line 2726 of file htmlelem.c.

2727{
2729
2730 TRACE("(%p)->(%d)\n", This, v);
2731
2732 if(!This->nselem) {
2733 FIXME("NULL nselem\n");
2734 return E_NOTIMPL;
2735 }
2736
2737 nsIDOMHTMLElement_SetScrollTop(This->nselem, v);
2738 return S_OK;
2739}

◆ HTMLElement2_put_tabIndex()

static HRESULT WINAPI HTMLElement2_put_tabIndex ( IHTMLElement2 *  iface,
short  v 
)
static

Definition at line 2345 of file htmlelem.c.

2346{
2348 nsresult nsres;
2349
2350 TRACE("(%p)->(%d)\n", This, v);
2351
2352 nsres = nsIDOMHTMLElement_SetTabIndex(This->nselem, v);
2353 if(NS_FAILED(nsres))
2354 ERR("GetTabIndex failed: %08x\n", nsres);
2355
2356 return S_OK;
2357}

◆ HTMLElement2_put_tagUrn()

static HRESULT WINAPI HTMLElement2_put_tagUrn ( IHTMLElement2 *  iface,
BSTR  v 
)
static

Definition at line 2919 of file htmlelem.c.

2920{
2922 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
2923 return E_NOTIMPL;
2924}

◆ HTMLElement2_QueryInterface()

static HRESULT WINAPI HTMLElement2_QueryInterface ( IHTMLElement2 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1972 of file htmlelem.c.

1974{
1976 return IHTMLElement_QueryInterface(&This->IHTMLElement_iface, riid, ppv);
1977}

◆ HTMLElement2_Release()

static ULONG WINAPI HTMLElement2_Release ( IHTMLElement2 *  iface)
static

Definition at line 1985 of file htmlelem.c.

1986{
1988 return IHTMLElement_Release(&This->IHTMLElement_iface);
1989}

◆ HTMLElement2_releaseCapture()

static HRESULT WINAPI HTMLElement2_releaseCapture ( IHTMLElement2 *  iface)
static

Definition at line 2036 of file htmlelem.c.

2037{
2039 FIXME("(%p)\n", This);
2040 return E_NOTIMPL;
2041}

◆ HTMLElement2_removeBehavior()

static HRESULT WINAPI HTMLElement2_removeBehavior ( IHTMLElement2 *  iface,
LONG  cookie,
VARIANT_BOOL pfResult 
)
static

Definition at line 2882 of file htmlelem.c.

2884{
2886 FIXME("(%p)->(%d %p)\n", This, cookie, pfResult);
2887 return E_NOTIMPL;
2888}
Definition: cookie.c:34

◆ HTMLElement2_removeExpression()

static HRESULT WINAPI HTMLElement2_removeExpression ( IHTMLElement2 *  iface,
BSTR  propname,
VARIANT_BOOL pfSuccess 
)
static

Definition at line 2337 of file htmlelem.c.

2339{
2341 FIXME("(%p)->(%s %p)\n", This, debugstr_w(propname), pfSuccess);
2342 return E_NOTIMPL;
2343}

◆ HTMLElement2_removeFilter()

static HRESULT WINAPI HTMLElement2_removeFilter ( IHTMLElement2 *  iface,
IUnknown pUnk 
)
static

Definition at line 2485 of file htmlelem.c.

2486{
2488 FIXME("(%p)->(%p)\n", This, pUnk);
2489 return E_NOTIMPL;
2490}

◆ HTMLElement2_replaceAdjacentText()

static HRESULT WINAPI HTMLElement2_replaceAdjacentText ( IHTMLElement2 *  iface,
BSTR  where,
BSTR  newText,
BSTR oldText 
)
static

Definition at line 2859 of file htmlelem.c.

2861{
2863 FIXME("(%p)->(%s %s %p)\n", This, debugstr_w(where), debugstr_w(newText), oldText);
2864 return E_NOTIMPL;
2865}

◆ HTMLElement2_setCapture()

static HRESULT WINAPI HTMLElement2_setCapture ( IHTMLElement2 *  iface,
VARIANT_BOOL  containerCapture 
)
static

Definition at line 2029 of file htmlelem.c.

2030{
2032 FIXME("(%p)->(%x)\n", This, containerCapture);
2033 return E_NOTIMPL;
2034}

◆ HTMLElement2_setExpression()

static HRESULT WINAPI HTMLElement2_setExpression ( IHTMLElement2 *  iface,
BSTR  propname,
BSTR  expression,
BSTR  language 
)
static

Definition at line 2320 of file htmlelem.c.

2322{
2324 FIXME("(%p)->(%s %s %s)\n", This, debugstr_w(propname), debugstr_w(expression),
2325 debugstr_w(language));
2326 return E_NOTIMPL;
2327}

◆ HTMLElement3_AddRef()

static ULONG WINAPI HTMLElement3_AddRef ( IHTMLElement3 *  iface)
static

Definition at line 3097 of file htmlelem.c.

3098{
3100 return IHTMLElement_AddRef(&This->IHTMLElement_iface);
3101}
static HTMLElement * impl_from_IHTMLElement3(IHTMLElement3 *iface)
Definition: htmlelem.c:3085

◆ HTMLElement3_dragDrop()

static HRESULT WINAPI HTMLElement3_dragDrop ( IHTMLElement3 *  iface,
VARIANT_BOOL pfRet 
)
static

Definition at line 3487 of file htmlelem.c.

3488{
3490 FIXME("(%p)->(%p)\n", This, pfRet);
3491 return E_NOTIMPL;
3492}

◆ HTMLElement3_fireEvent()

static HRESULT WINAPI HTMLElement3_fireEvent ( IHTMLElement3 *  iface,
BSTR  bstrEventName,
VARIANT pvarEventObject,
VARIANT_BOOL pfCancelled 
)
static

Definition at line 3364 of file htmlelem.c.

3366{
3368
3369 TRACE("(%p)->(%s %s %p)\n", This, debugstr_w(bstrEventName), debugstr_variant(pvarEventObject),
3370 pfCancelled);
3371
3372 return dispatch_event(&This->node, bstrEventName, pvarEventObject, pfCancelled);
3373}
HRESULT dispatch_event(HTMLDOMNode *node, const WCHAR *event_name, VARIANT *event_var, VARIANT_BOOL *cancelled)
Definition: htmlevent.c:1225

◆ HTMLElement3_get_canHaveHTML()

static HRESULT WINAPI HTMLElement3_get_canHaveHTML ( IHTMLElement3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 3154 of file htmlelem.c.

3155{
3157 FIXME("(%p)->(%p)\n", This, p);
3158 return E_NOTIMPL;
3159}

◆ HTMLElement3_get_contentEditable()

static HRESULT WINAPI HTMLElement3_get_contentEditable ( IHTMLElement3 *  iface,
BSTR p 
)
static

Definition at line 3244 of file htmlelem.c.

3245{
3247 nsresult nsres;
3248 nsAString str;
3249
3250 TRACE("(%p)->(%p)\n", This, p);
3251
3253 nsres = nsIDOMHTMLElement_GetContentEditable(This->nselem, &str);
3254 return return_nsstr(nsres, &str, p);
3255}

◆ HTMLElement3_get_disabled()

static HRESULT WINAPI HTMLElement3_get_disabled ( IHTMLElement3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 3301 of file htmlelem.c.

3302{
3304 VARIANT *var;
3305 HRESULT hres;
3306
3307 TRACE("(%p)->(%p)\n", This, p);
3308
3309 if(This->node.vtbl->get_disabled)
3310 return This->node.vtbl->get_disabled(&This->node, p);
3311
3312 hres = dispex_get_dprop_ref(&This->node.event_target.dispex, disabledW, FALSE, &var);
3313 if(hres == DISP_E_UNKNOWNNAME) {
3314 *p = VARIANT_FALSE;
3315 return S_OK;
3316 }
3317 if(FAILED(hres))
3318 return hres;
3319
3320 if(V_VT(var) != VT_BOOL) {
3321 FIXME("value is %s\n", debugstr_variant(var));
3322 return E_NOTIMPL;
3323 }
3324
3325 *p = V_BOOL(var);
3326 return S_OK;
3327}
#define FALSE
Definition: types.h:117
@ VT_BOOL
Definition: compat.h:2306
static const WCHAR disabledW[]
Definition: htmlelem.c:3278
HRESULT dispex_get_dprop_ref(DispatchEx *This, const WCHAR *name, BOOL alloc, VARIANT **ret)
Definition: dispex.c:555
#define V_BOOL(A)
Definition: oleauto.h:224

◆ HTMLElement3_get_glyphMode()

static HRESULT WINAPI HTMLElement3_get_glyphMode ( IHTMLElement3 *  iface,
LONG p 
)
static

Definition at line 3494 of file htmlelem.c.

3495{
3497 FIXME("(%p)->(%p)\n", This, p);
3498 return E_NOTIMPL;
3499}

◆ HTMLElement3_get_hideFocus()

static HRESULT WINAPI HTMLElement3_get_hideFocus ( IHTMLElement3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 3271 of file htmlelem.c.

3272{
3274 FIXME("(%p)->(%p)\n", This, p);
3275 return E_NOTIMPL;
3276}

◆ HTMLElement3_get_inflateBlock()

static HRESULT WINAPI HTMLElement3_get_inflateBlock ( IHTMLElement3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 3196 of file htmlelem.c.

3197{
3199 FIXME("(%p)->(%p)\n", This, p);
3200 return E_NOTIMPL;
3201}

◆ HTMLElement3_get_isContentEditable()

static HRESULT WINAPI HTMLElement3_get_isContentEditable ( IHTMLElement3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 3257 of file htmlelem.c.

3258{
3260 FIXME("(%p)->(%p)\n", This, p);
3261 return E_NOTIMPL;
3262}

◆ HTMLElement3_get_isDisabled()

static HRESULT WINAPI HTMLElement3_get_isDisabled ( IHTMLElement3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 3329 of file htmlelem.c.

3330{
3332 FIXME("(%p)->(%p)\n", This, p);
3333 return E_NOTIMPL;
3334}

◆ HTMLElement3_get_isMultiLine()

static HRESULT WINAPI HTMLElement3_get_isMultiLine ( IHTMLElement3 *  iface,
VARIANT_BOOL p 
)
static

Definition at line 3147 of file htmlelem.c.

3148{
3150 FIXME("(%p)->(%p)\n", This, p);
3151 return E_NOTIMPL;
3152}

◆ HTMLElement3_get_onactivate()

static HRESULT WINAPI HTMLElement3_get_onactivate ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3466 of file htmlelem.c.

3467{
3469 FIXME("(%p)->(%p)\n", This, p);
3470 return E_NOTIMPL;
3471}

◆ HTMLElement3_get_onbeforedeactivate()

static HRESULT WINAPI HTMLElement3_get_onbeforedeactivate ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3210 of file htmlelem.c.

3211{
3213 FIXME("(%p)->(%p)\n", This, p);
3214 return E_NOTIMPL;
3215}

◆ HTMLElement3_get_oncontrolselect()

static HRESULT WINAPI HTMLElement3_get_oncontrolselect ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3357 of file htmlelem.c.

3358{
3360 FIXME("(%p)->(%p)\n", This, p);
3361 return E_NOTIMPL;
3362}

◆ HTMLElement3_get_ondeactivate()

static HRESULT WINAPI HTMLElement3_get_ondeactivate ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3480 of file htmlelem.c.

3481{
3483 FIXME("(%p)->(%p)\n", This, p);
3484 return E_NOTIMPL;
3485}

◆ HTMLElement3_get_onlayoutcomplete()

static HRESULT WINAPI HTMLElement3_get_onlayoutcomplete ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3168 of file htmlelem.c.

3169{
3171 FIXME("(%p)->(%p)\n", This, p);
3172 return E_NOTIMPL;
3173}

◆ HTMLElement3_get_onmousecenter()

static HRESULT WINAPI HTMLElement3_get_onmousecenter ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3438 of file htmlelem.c.

3439{
3441 FIXME("(%p)->(%p)\n", This, p);
3442 return E_NOTIMPL;
3443}

◆ HTMLElement3_get_onmouseleave()

static HRESULT WINAPI HTMLElement3_get_onmouseleave ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3452 of file htmlelem.c.

3453{
3455 FIXME("(%p)->(%p)\n", This, p);
3456 return E_NOTIMPL;
3457}

◆ HTMLElement3_get_onmove()

static HRESULT WINAPI HTMLElement3_get_onmove ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3343 of file htmlelem.c.

3344{
3346 FIXME("(%p)->(%p)\n", This, p);
3347 return E_NOTIMPL;
3348}

◆ HTMLElement3_get_onmoveend()

static HRESULT WINAPI HTMLElement3_get_onmoveend ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3424 of file htmlelem.c.

3425{
3427 FIXME("(%p)->(%p)\n", This, p);
3428 return E_NOTIMPL;
3429}

◆ HTMLElement3_get_onmovestart()

static HRESULT WINAPI HTMLElement3_get_onmovestart ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3410 of file htmlelem.c.

3411{
3413 FIXME("(%p)->(%p)\n", This, p);
3414 return E_NOTIMPL;
3415}

◆ HTMLElement3_get_onpage()

static HRESULT WINAPI HTMLElement3_get_onpage ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3182 of file htmlelem.c.

3183{
3185 FIXME("(%p)->(%p)\n", This, p);
3186 return E_NOTIMPL;
3187}

◆ HTMLElement3_get_onresizeend()

static HRESULT WINAPI HTMLElement3_get_onresizeend ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3396 of file htmlelem.c.

3397{
3399 FIXME("(%p)->(%p)\n", This, p);
3400 return E_NOTIMPL;
3401}

◆ HTMLElement3_get_onresizestart()

static HRESULT WINAPI HTMLElement3_get_onresizestart ( IHTMLElement3 *  iface,
VARIANT p 
)
static

Definition at line 3382 of file htmlelem.c.

3383{
3385 FIXME("(%p)->(%p)\n", This, p);
3386 return E_NOTIMPL;
3387}

◆ HTMLElement3_GetIDsOfNames()

static HRESULT WINAPI HTMLElement3_GetIDsOfNames ( IHTMLElement3 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 3122 of file htmlelem.c.

3125{
3127 return IDispatchEx_GetIDsOfNames(&This->node.event_target.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
3128 lcid, rgDispId);
3129}

◆ HTMLElement3_GetTypeInfo()

static HRESULT WINAPI HTMLElement3_GetTypeInfo ( IHTMLElement3 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 3115 of file htmlelem.c.

3117{
3119 return IDispatchEx_GetTypeInfo(&This->node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
3120}

◆ HTMLElement3_GetTypeInfoCount()

static HRESULT WINAPI HTMLElement3_GetTypeInfoCount ( IHTMLElement3 *  iface,
UINT pctinfo 
)
static

Definition at line 3109 of file htmlelem.c.

3110{
3112 return IDispatchEx_GetTypeInfoCount(&This->node.event_target.dispex.IDispatchEx_iface, pctinfo);
3113}

◆ HTMLElement3_Invoke()

static HRESULT WINAPI HTMLElement3_Invoke ( IHTMLElement3 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 3131 of file htmlelem.c.

3134{
3136 return IDispatchEx_Invoke(&This->node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
3137 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
3138}

◆ HTMLElement3_mergeAttributes()

static HRESULT WINAPI HTMLElement3_mergeAttributes ( IHTMLElement3 *  iface,
IHTMLElement *  mergeThis,
VARIANT pvarFlags 
)
static

Definition at line 3140 of file htmlelem.c.

3141{
3143 FIXME("(%p)->(%p %p)\n", This, mergeThis, pvarFlags);
3144 return E_NOTIMPL;
3145}

◆ HTMLElement3_put_contentEditable()

static HRESULT WINAPI HTMLElement3_put_contentEditable ( IHTMLElement3 *  iface,
BSTR  v 
)
static

Definition at line 3224 of file htmlelem.c.

3225{
3227 nsresult nsres;
3228 nsAString str;
3229
3230 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
3231
3233 nsres = nsIDOMHTMLElement_SetContentEditable(This->nselem, &str);
3235
3236 if (NS_FAILED(nsres)){
3237 ERR("SetContentEditable(%s) failed!\n", debugstr_w(v));
3238 return E_FAIL;
3239 }
3240
3241 return S_OK;
3242}

◆ HTMLElement3_put_disabled()

static HRESULT WINAPI HTMLElement3_put_disabled ( IHTMLElement3 *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 3280 of file htmlelem.c.

3281{
3283 VARIANT *var;
3284 HRESULT hres;
3285
3286 TRACE("(%p)->(%x)\n", This, v);
3287
3288 if(This->node.vtbl->put_disabled)
3289 return This->node.vtbl->put_disabled(&This->node, v);
3290
3291 hres = dispex_get_dprop_ref(&This->node.event_target.dispex, disabledW, TRUE, &var);
3292 if(FAILED(hres))
3293 return hres;
3294
3296 V_VT(var) = VT_BOOL;
3297 V_BOOL(var) = v;
3298 return S_OK;
3299}
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
Definition: variant.c:648

◆ HTMLElement3_put_hideFocus()

static HRESULT WINAPI HTMLElement3_put_hideFocus ( IHTMLElement3 *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 3264 of file htmlelem.c.

3265{
3267 FIXME("(%p)->(%x)\n", This, v);
3268 return E_NOTIMPL;
3269}

◆ HTMLElement3_put_inflateBlock()

static HRESULT WINAPI HTMLElement3_put_inflateBlock ( IHTMLElement3 *  iface,
VARIANT_BOOL  v 
)
static

Definition at line 3189 of file htmlelem.c.

3190{
3192 FIXME("(%p)->(%x)\n", This, v);
3193 return E_NOTIMPL;
3194}

◆ HTMLElement3_put_onactivate()

static HRESULT WINAPI HTMLElement3_put_onactivate ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3459 of file htmlelem.c.

3460{
3462 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3463 return E_NOTIMPL;
3464}

◆ HTMLElement3_put_onbeforedeactivate()

static HRESULT WINAPI HTMLElement3_put_onbeforedeactivate ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3203 of file htmlelem.c.

3204{
3206 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3207 return E_NOTIMPL;
3208}

◆ HTMLElement3_put_oncontrolselect()

static HRESULT WINAPI HTMLElement3_put_oncontrolselect ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3350 of file htmlelem.c.

3351{
3353 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3354 return E_NOTIMPL;
3355}

◆ HTMLElement3_put_ondeactivate()

static HRESULT WINAPI HTMLElement3_put_ondeactivate ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3473 of file htmlelem.c.

3474{
3476 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3477 return E_NOTIMPL;
3478}

◆ HTMLElement3_put_onlayoutcomplete()

static HRESULT WINAPI HTMLElement3_put_onlayoutcomplete ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3161 of file htmlelem.c.

3162{
3164 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3165 return E_NOTIMPL;
3166}

◆ HTMLElement3_put_onmousecenter()

static HRESULT WINAPI HTMLElement3_put_onmousecenter ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3431 of file htmlelem.c.

3432{
3434 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3435 return E_NOTIMPL;
3436}

◆ HTMLElement3_put_onmouseleave()

static HRESULT WINAPI HTMLElement3_put_onmouseleave ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3445 of file htmlelem.c.

3446{
3448 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3449 return E_NOTIMPL;
3450}

◆ HTMLElement3_put_onmove()

static HRESULT WINAPI HTMLElement3_put_onmove ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3336 of file htmlelem.c.

3337{
3339 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3340 return E_NOTIMPL;
3341}

◆ HTMLElement3_put_onmoveend()

static HRESULT WINAPI HTMLElement3_put_onmoveend ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3417 of file htmlelem.c.

3418{
3420 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3421 return E_NOTIMPL;
3422}

◆ HTMLElement3_put_onmovestart()

static HRESULT WINAPI HTMLElement3_put_onmovestart ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3403 of file htmlelem.c.

3404{
3406 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3407 return E_NOTIMPL;
3408}

◆ HTMLElement3_put_onpage()

static HRESULT WINAPI HTMLElement3_put_onpage ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3175 of file htmlelem.c.

3176{
3178 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3179 return E_NOTIMPL;
3180}

◆ HTMLElement3_put_onresizeend()

static HRESULT WINAPI HTMLElement3_put_onresizeend ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3389 of file htmlelem.c.

3390{
3392 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3393 return E_NOTIMPL;
3394}

◆ HTMLElement3_put_onresizestart()

static HRESULT WINAPI HTMLElement3_put_onresizestart ( IHTMLElement3 *  iface,
VARIANT  v 
)
static

Definition at line 3375 of file htmlelem.c.

3376{
3378 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3379 return E_NOTIMPL;
3380}

◆ HTMLElement3_QueryInterface()

static HRESULT WINAPI HTMLElement3_QueryInterface ( IHTMLElement3 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 3090 of file htmlelem.c.

3092{
3094 return IHTMLElement_QueryInterface(&This->IHTMLElement_iface, riid, ppv);
3095}

◆ HTMLElement3_Release()

static ULONG WINAPI HTMLElement3_Release ( IHTMLElement3 *  iface)
static

Definition at line 3103 of file htmlelem.c.

3104{
3106 return IHTMLElement_Release(&This->IHTMLElement_iface);
3107}

◆ HTMLElement3_setActive()

static HRESULT WINAPI HTMLElement3_setActive ( IHTMLElement3 *  iface)
static

Definition at line 3217 of file htmlelem.c.

3218{
3220 FIXME("(%p)\n", This);
3221 return E_NOTIMPL;
3222}

◆ HTMLElement4_AddRef()

static ULONG WINAPI HTMLElement4_AddRef ( IHTMLElement4 *  iface)
static

Definition at line 3566 of file htmlelem.c.

3567{
3569 return IHTMLElement_AddRef(&This->IHTMLElement_iface);
3570}
static HTMLElement * impl_from_IHTMLElement4(IHTMLElement4 *iface)
Definition: htmlelem.c:3554

◆ HTMLElement4_get_onbeforeactivate()

static HRESULT WINAPI HTMLElement4_get_onbeforeactivate ( IHTMLElement4 *  iface,
VARIANT p 
)
static

Definition at line 3672 of file htmlelem.c.

3673{
3675 FIXME("(%p)->(%p)\n", This, p);
3676 return E_NOTIMPL;
3677}

◆ HTMLElement4_get_onfocusin()

static HRESULT WINAPI HTMLElement4_get_onfocusin ( IHTMLElement4 *  iface,
VARIANT p 
)
static

Definition at line 3688 of file htmlelem.c.

3689{
3691
3692 TRACE("(%p)->(%p)\n", This, p);
3693
3694 return get_node_event(&This->node, EVENTID_FOCUSIN, p);
3695}
@ EVENTID_FOCUSIN
Definition: htmlevent.h:34

◆ HTMLElement4_get_onfocusout()

static HRESULT WINAPI HTMLElement4_get_onfocusout ( IHTMLElement4 *  iface,
VARIANT p 
)
static

Definition at line 3704 of file htmlelem.c.

3705{
3707 FIXME("(%p)->(%p)\n", This, p);
3708 return E_NOTIMPL;
3709}

◆ HTMLElement4_get_onmousewheel()

static HRESULT WINAPI HTMLElement4_get_onmousewheel ( IHTMLElement4 *  iface,
VARIANT p 
)
static

Definition at line 3616 of file htmlelem.c.

3617{
3619
3620 TRACE("(%p)->(%p)\n", This, p);
3621
3622 return get_node_event(&This->node, EVENTID_MOUSEWHEEL, p);
3623}
@ EVENTID_MOUSEWHEEL
Definition: htmlevent.h:45

◆ HTMLElement4_getAttributeNode()

static HRESULT WINAPI HTMLElement4_getAttributeNode ( IHTMLElement4 *  iface,
BSTR  bstrname,
IHTMLDOMAttribute **  ppAttribute 
)
static

Definition at line 3632 of file htmlelem.c.

3633{
3636 HRESULT hres;
3637
3638 TRACE("(%p)->(%s %p)\n", This, debugstr_w(bstrname), ppAttribute);
3639
3640 hres = HTMLElement_get_attr_col(&This->node, &attrs);
3641 if(FAILED(hres))
3642 return hres;
3643
3644 hres = IHTMLAttributeCollection2_getNamedItem(&attrs->IHTMLAttributeCollection2_iface, bstrname, ppAttribute);
3645 IHTMLAttributeCollection_Release(&attrs->IHTMLAttributeCollection_iface);
3646 return hres;
3647}
HRESULT HTMLElement_get_attr_col(HTMLDOMNode *iface, HTMLAttributeCollection **ac)
Definition: htmlelem.c:4827
IHTMLAttributeCollection IHTMLAttributeCollection_iface
IHTMLAttributeCollection2 IHTMLAttributeCollection2_iface

◆ HTMLElement4_GetIDsOfNames()

static HRESULT WINAPI HTMLElement4_GetIDsOfNames ( IHTMLElement4 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 3591 of file htmlelem.c.

3593{
3595 return IDispatchEx_GetIDsOfNames(&This->node.event_target.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
3596 lcid, rgDispId);
3597}

◆ HTMLElement4_GetTypeInfo()

static HRESULT WINAPI HTMLElement4_GetTypeInfo ( IHTMLElement4 *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 3584 of file htmlelem.c.

3586{
3588 return IDispatchEx_GetTypeInfo(&This->node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
3589}

◆ HTMLElement4_GetTypeInfoCount()

static HRESULT WINAPI HTMLElement4_GetTypeInfoCount ( IHTMLElement4 *  iface,
UINT pctinfo 
)
static

Definition at line 3578 of file htmlelem.c.

3579{
3581 return IDispatchEx_GetTypeInfoCount(&This->node.event_target.dispex.IDispatchEx_iface, pctinfo);
3582}

◆ HTMLElement4_Invoke()

static HRESULT WINAPI HTMLElement4_Invoke ( IHTMLElement4 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 3599 of file htmlelem.c.

3601{
3603 return IDispatchEx_Invoke(&This->node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
3604 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
3605}

◆ HTMLElement4_normalize()

static HRESULT WINAPI HTMLElement4_normalize ( IHTMLElement4 *  iface)
static

Definition at line 3625 of file htmlelem.c.

3626{
3628 FIXME("(%p)\n", This);
3629 return E_NOTIMPL;
3630}

◆ HTMLElement4_put_onbeforeactivate()

static HRESULT WINAPI HTMLElement4_put_onbeforeactivate ( IHTMLElement4 *  iface,
VARIANT  v 
)
static

Definition at line 3665 of file htmlelem.c.

3666{
3668 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3669 return E_NOTIMPL;
3670}

◆ HTMLElement4_put_onfocusin()

static HRESULT WINAPI HTMLElement4_put_onfocusin ( IHTMLElement4 *  iface,
VARIANT  v 
)
static

Definition at line 3679 of file htmlelem.c.

3680{
3682
3683 FIXME("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
3684
3685 return set_node_event(&This->node, EVENTID_FOCUSIN, &v);
3686}

◆ HTMLElement4_put_onfocusout()

static HRESULT WINAPI HTMLElement4_put_onfocusout ( IHTMLElement4 *  iface,
VARIANT  v 
)
static

Definition at line 3697 of file htmlelem.c.

3698{
3700 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
3701 return E_NOTIMPL;
3702}

◆ HTMLElement4_put_onmousewheel()

static HRESULT WINAPI HTMLElement4_put_onmousewheel ( IHTMLElement4 *  iface,
VARIANT  v 
)
static

Definition at line 3607 of file htmlelem.c.

3608{
3610
3611 FIXME("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
3612
3613 return set_node_event(&This->node, EVENTID_MOUSEWHEEL, &v);
3614}

◆ HTMLElement4_QueryInterface()

static HRESULT WINAPI HTMLElement4_QueryInterface ( IHTMLElement4 *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 3559 of file htmlelem.c.

3561{
3563 return IHTMLElement_QueryInterface(&This->IHTMLElement_iface, riid, ppv);
3564}

◆ HTMLElement4_Release()

static ULONG WINAPI HTMLElement4_Release ( IHTMLElement4 *  iface)
static

Definition at line 3572 of file htmlelem.c.

3573{
3575 return IHTMLElement_Release(&This->IHTMLElement_iface);
3576}

◆ HTMLElement4_removeAttributeNode()

static HRESULT WINAPI HTMLElement4_removeAttributeNode ( IHTMLElement4 *  iface,
IHTMLDOMAttribute *  pattr,
IHTMLDOMAttribute **  ppretAttribute 
)
static

Definition at line 3657 of file htmlelem.c.

3659{
3661 FIXME("(%p)->(%p %p)\n", This, pattr, ppretAttribute);
3662 return E_NOTIMPL;
3663}

◆ HTMLElement4_setAttributeNode()

static HRESULT WINAPI HTMLElement4_setAttributeNode ( IHTMLElement4 *  iface,
IHTMLDOMAttribute *  pattr,
IHTMLDOMAttribute **  ppretAttribute 
)
static

Definition at line 3649 of file htmlelem.c.

3651{
3653 FIXME("(%p)->(%p %p)\n", This, pattr, ppretAttribute);
3654 return E_NOTIMPL;
3655}

◆ HTMLElement_AddRef()

static ULONG WINAPI HTMLElement_AddRef ( IHTMLElement *  iface)
static

Definition at line 546 of file htmlelem.c.

547{
549
550 return IHTMLDOMNode_AddRef(&This->node.IHTMLDOMNode_iface);
551}
static HTMLElement * impl_from_IHTMLElement(IHTMLElement *iface)
Definition: htmlelem.c:241

◆ HTMLElement_bind_event()

static void HTMLElement_bind_event ( DispatchEx dispex,
int  eid 
)
static

Definition at line 3981 of file htmlelem.c.

3982{
3984 This->node.doc->node.event_target.dispex.data->vtbl->bind_event(&This->node.doc->node.event_target.dispex, eid);
3985}
static HTMLElement * impl_from_DispatchEx(DispatchEx *iface)
Definition: htmlelem.c:3861

◆ HTMLElement_click()

static HRESULT WINAPI HTMLElement_click ( IHTMLElement *  iface)
static

Definition at line 1661 of file htmlelem.c.

1662{
1664
1665 TRACE("(%p)\n", This);
1666
1667 return call_fire_event(&This->node, EVENTID_CLICK);
1668}
HRESULT call_fire_event(HTMLDOMNode *node, eventid_t eid)
Definition: htmlevent.c:1282
@ EVENTID_CLICK
Definition: htmlevent.h:26

◆ HTMLElement_clone()

HRESULT HTMLElement_clone ( HTMLDOMNode iface,
nsIDOMNode nsnode,
HTMLDOMNode **  ret 
)

Definition at line 3793 of file htmlelem.c.

3794{
3796 HTMLElement *new_elem;
3797 HRESULT hres;
3798
3799 hres = HTMLElement_Create(This->node.doc, nsnode, FALSE, &new_elem);
3800 if(FAILED(hres))
3801 return hres;
3802
3803 if(This->filter) {
3804 new_elem->filter = heap_strdupW(This->filter);
3805 if(!new_elem->filter) {
3806 IHTMLElement_Release(&This->IHTMLElement_iface);
3807 return E_OUTOFMEMORY;
3808 }
3809 }
3810
3811 *ret = &new_elem->node;
3812 return S_OK;
3813}
static WCHAR * heap_strdupW(const WCHAR *str)
Definition: propsheet.c:178
HTMLDOMNode node
WCHAR * filter

◆ HTMLElement_contains()

static HRESULT WINAPI HTMLElement_contains ( IHTMLElement *  iface,
IHTMLElement *  pChild,
VARIANT_BOOL pfResult 
)
static

Definition at line 1198 of file htmlelem.c.

1200{
1203
1204 TRACE("(%p)->(%p %p)\n", This, pChild, pfResult);
1205
1206 if(pChild) {
1208 nsresult nsres;
1209
1211 if(!child) {
1212 ERR("not our element\n");
1213 return E_FAIL;
1214 }
1215
1216 nsres = nsIDOMNode_Contains(This->node.nsnode, child->node.nsnode, &result);
1217 assert(nsres == NS_OK);
1218 }
1219
1220 *pfResult = result ? VARIANT_TRUE : VARIANT_FALSE;
1221 return S_OK;
1222}
unsigned char cpp_bool
Definition: atl.c:38
GLuint64EXT * result
Definition: glext.h:11304
static HWND child
Definition: cursoricon.c:298

◆ HTMLElement_Create()

HRESULT HTMLElement_Create ( HTMLDocumentNode doc,
nsIDOMNode nsnode,
BOOL  use_generic,
HTMLElement **  ret 
)

Definition at line 4032 of file htmlelem.c.

4033{
4034 nsIDOMHTMLElement *nselem;
4035 nsAString class_name_str;
4036 const PRUnichar *class_name;
4037 const tag_desc_t *tag;
4039 nsresult nsres;
4040 HRESULT hres;
4041
4042 nsres = nsIDOMNode_QueryInterface(nsnode, &IID_nsIDOMHTMLElement, (void**)&nselem);
4043 if(NS_FAILED(nsres))
4044 return E_FAIL;
4045
4046 nsAString_Init(&class_name_str, NULL);
4047 nsIDOMHTMLElement_GetTagName(nselem, &class_name_str);
4048
4049 nsAString_GetData(&class_name_str, &class_name);
4050
4051 tag = get_tag_desc(class_name);
4052 if(tag) {
4053 hres = tag->constructor(doc, nselem, &elem);
4054 }else if(use_generic) {
4055 hres = HTMLGenericElement_Create(doc, nselem, &elem);
4056 }else {
4057 elem = heap_alloc_zero(sizeof(HTMLElement));
4058 if(elem) {
4059 elem->node.vtbl = &HTMLElementImplVtbl;
4061 hres = S_OK;
4062 }else {
4064 }
4065 }
4066
4067 TRACE("%s ret %p\n", debugstr_w(class_name), elem);
4068
4069 nsIDOMHTMLElement_Release(nselem);
4070 nsAString_Finish(&class_name_str);
4071 if(FAILED(hres))
4072 return hres;
4073
4074 *ret = elem;
4075 return S_OK;
4076}
static const tag_desc_t * get_tag_desc(const WCHAR *tag_name)
Definition: htmlelem.c:78
void HTMLElement_Init(HTMLElement *This, HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, dispex_static_data_t *dispex_data)
Definition: htmlelem.c:4008
static dispex_static_data_t HTMLElement_dispex
Definition: htmlelem.c:4001
static const NodeImplVtbl HTMLElementImplVtbl
Definition: htmlelem.c:3852
HRESULT HTMLGenericElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlgeneric.c:162

Referenced by create_element(), create_node(), HTMLElement_clone(), and HTMLImageElementFactory_create().

◆ HTMLElement_destructor()

void HTMLElement_destructor ( HTMLDOMNode iface)

Definition at line 3764 of file htmlelem.c.

3765{
3767
3768 ConnectionPointContainer_Destroy(&This->cp_container);
3769
3770 if(This->style) {
3771 This->style->elem = NULL;
3772 IHTMLStyle_Release(&This->style->IHTMLStyle_iface);
3773 }
3774 if(This->runtime_style) {
3775 This->runtime_style->elem = NULL;
3776 IHTMLStyle_Release(&This->runtime_style->IHTMLStyle_iface);
3777 }
3778 if(This->attrs) {
3780
3782 attr->elem = NULL;
3783
3784 This->attrs->elem = NULL;
3785 IHTMLAttributeCollection_Release(&This->attrs->IHTMLAttributeCollection_iface);
3786 }
3787
3788 heap_free(This->filter);
3789
3791}
void ConnectionPointContainer_Destroy(ConnectionPointContainer *This)
Definition: events.c:442
void HTMLDOMNode_destructor(HTMLDOMNode *This)
Definition: htmlnode.c:1172

Referenced by HTMLCommentElement_destructor(), HTMLEmbedElement_destructor(), HTMLFrameBase_destructor(), HTMLGenericElement_destructor(), HTMLHeadElement_destructor(), HTMLMetaElement_destructor(), HTMLObjectElement_destructor(), HTMLStyleElement_destructor(), HTMLTableCell_destructor(), and HTMLTitleElement_destructor().

◆ HTMLElement_get_all()

static HRESULT WINAPI HTMLElement_get_all ( IHTMLElement *  iface,
IDispatch **  p 
)
static

Definition at line 1855 of file htmlelem.c.

1856{
1858
1859 TRACE("(%p)->(%p)\n", This, p);
1860
1862 return S_OK;
1863}
IHTMLElementCollection * create_all_collection(HTMLDOMNode *node, BOOL include_root)
Definition: htmlelemcol.c:654

◆ HTMLElement_get_attr_col()

HRESULT HTMLElement_get_attr_col ( HTMLDOMNode iface,
HTMLAttributeCollection **  ac 
)

Definition at line 4827 of file htmlelem.c.

4828{
4830
4831 if(This->attrs) {
4832 IHTMLAttributeCollection_AddRef(&This->attrs->IHTMLAttributeCollection_iface);
4833 *ac = This->attrs;
4834 return S_OK;
4835 }
4836
4837 This->attrs = heap_alloc_zero(sizeof(HTMLAttributeCollection));
4838 if(!This->attrs)
4839 return E_OUTOFMEMORY;
4840
4841 This->attrs->IHTMLAttributeCollection_iface.lpVtbl = &HTMLAttributeCollectionVtbl;
4842 This->attrs->IHTMLAttributeCollection2_iface.lpVtbl = &HTMLAttributeCollection2Vtbl;
4843 This->attrs->IHTMLAttributeCollection3_iface.lpVtbl = &HTMLAttributeCollection3Vtbl;
4844 This->attrs->ref = 2;
4845
4846 This->attrs->elem = This;
4847 list_init(&This->attrs->attrs);
4848 init_dispex(&This->attrs->dispex, (IUnknown*)&This->attrs->IHTMLAttributeCollection_iface,
4850
4851 *ac = This->attrs;
4852 return S_OK;
4853}
static void list_init(struct list_entry *head)
Definition: list.h:51
static const IHTMLAttributeCollection2Vtbl HTMLAttributeCollection2Vtbl
Definition: htmlelem.c:4612
static dispex_static_data_t HTMLAttributeCollection_dispex
Definition: htmlelem.c:4820
static const IHTMLAttributeCollectionVtbl HTMLAttributeCollectionVtbl
Definition: htmlelem.c:4504
static const IHTMLAttributeCollection3Vtbl HTMLAttributeCollection3Vtbl
Definition: htmlelem.c:4730

Referenced by HTMLDOMAttribute_Create(), and HTMLElement4_getAttributeNode().

◆ HTMLElement_get_children()

static HRESULT WINAPI HTMLElement_get_children ( IHTMLElement *  iface,
IDispatch **  p 
)
static

Definition at line 1835 of file htmlelem.c.

1836{
1838 nsIDOMNodeList *nsnode_list;
1839 nsresult nsres;
1840
1841 TRACE("(%p)->(%p)\n", This, p);
1842
1843 nsres = nsIDOMNode_GetChildNodes(This->node.nsnode, &nsnode_list);
1844 if(NS_FAILED(nsres)) {
1845 ERR("GetChildNodes failed: %08x\n", nsres);
1846 return E_FAIL;
1847 }
1848
1849 *p = (IDispatch*)create_collection_from_nodelist(This->node.doc, nsnode_list);
1850
1851 nsIDOMNodeList_Release(nsnode_list);
1852 return S_OK;
1853}
IHTMLElementCollection * create_collection_from_nodelist(HTMLDocumentNode *doc, nsIDOMNodeList *nslist)
Definition: htmlelemcol.c:670

◆ HTMLElement_get_className()

static HRESULT WINAPI HTMLElement_get_className ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 739 of file htmlelem.c.

740{
742 nsAString class_str;
743 nsresult nsres;
744
745 TRACE("(%p)->(%p)\n", This, p);
746
747 if(!This->nselem) {
748 FIXME("NULL nselem\n");
749 return E_NOTIMPL;
750 }
751
752 nsAString_Init(&class_str, NULL);
753 nsres = nsIDOMHTMLElement_GetClassName(This->nselem, &class_str);
754 return return_nsstr(nsres, &class_str, p);
755}

◆ HTMLElement_get_dispid()

static HRESULT HTMLElement_get_dispid ( DispatchEx dispex,
BSTR  name,
DWORD  grfdex,
DISPID pid 
)
static

Definition at line 3866 of file htmlelem.c.

3868{
3870
3871 if(This->node.vtbl->get_dispid)
3872 return This->node.vtbl->get_dispid(&This->node, name, grfdex, pid);
3873
3874 return DISP_E_UNKNOWNNAME;
3875}
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
Definition: winddi.h:3837

◆ HTMLElement_get_document()

static HRESULT WINAPI HTMLElement_get_document ( IHTMLElement *  iface,
IDispatch **  p 
)
static

Definition at line 1050 of file htmlelem.c.

1051{
1053
1054 TRACE("(%p)->(%p)\n", This, p);
1055
1056 if(!p)
1057 return E_POINTER;
1058
1059 if(This->node.vtbl->get_document)
1060 return This->node.vtbl->get_document(&This->node, p);
1061
1062 *p = (IDispatch*)&This->node.doc->basedoc.IHTMLDocument2_iface;
1063 IDispatch_AddRef(*p);
1064 return S_OK;
1065}
#define E_POINTER
Definition: winerror.h:2365

◆ HTMLElement_get_event_target_ptr()

static event_target_t ** HTMLElement_get_event_target_ptr ( DispatchEx dispex)
static

Definition at line 3973 of file htmlelem.c.

3974{
3976 return This->node.vtbl->get_event_target_ptr
3977 ? This->node.vtbl->get_event_target_ptr(&This->node)
3978 : &This->node.event_target.ptr;
3979}

◆ HTMLElement_get_filters()

static HRESULT WINAPI HTMLElement_get_filters ( IHTMLElement *  iface,
IHTMLFiltersCollection **  p 
)
static

Definition at line 1670 of file htmlelem.c.

1672{
1674 TRACE("(%p)->(%p)\n", This, p);
1675
1676 if(!p)
1677 return E_POINTER;
1678
1680
1681 return S_OK;
1682}
static IHTMLFiltersCollection * HTMLFiltersCollection_Create(void)
Definition: htmlelem.c:4257

◆ HTMLElement_get_id()

static HRESULT WINAPI HTMLElement_get_id ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 779 of file htmlelem.c.

780{
782 nsAString id_str;
783 nsresult nsres;
784
785 TRACE("(%p)->(%p)\n", This, p);
786
787 if(!This->nselem) {
788 *p = NULL;
789 return S_OK;
790 }
791
792 nsAString_Init(&id_str, NULL);
793 nsres = nsIDOMHTMLElement_GetId(This->nselem, &id_str);
794 return return_nsstr(nsres, &id_str, p);
795}

◆ HTMLElement_get_innerHTML()

static HRESULT WINAPI HTMLElement_get_innerHTML ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 1375 of file htmlelem.c.

1376{
1379 nsresult nsres;
1380
1381 TRACE("(%p)->(%p)\n", This, p);
1382
1383 if(!This->nselem) {
1384 FIXME("NULL nselem\n");
1385 return E_NOTIMPL;
1386 }
1387
1389 nsres = nsIDOMHTMLElement_GetInnerHTML(This->nselem, &html_str);
1390 return return_nsstr(nsres, &html_str, p);
1391}
static const char html_str[]
Definition: atl.c:64

◆ HTMLElement_get_innerText()

static HRESULT WINAPI HTMLElement_get_innerText ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 1439 of file htmlelem.c.

1440{
1442
1443 TRACE("(%p)->(%p)\n", This, p);
1444
1445 return get_node_text(&This->node, p);
1446}
HRESULT get_node_text(HTMLDOMNode *, BSTR *) DECLSPEC_HIDDEN
Definition: txtrange.c:515

◆ HTMLElement_get_isTextEdit()

static HRESULT WINAPI HTMLElement_get_isTextEdit ( IHTMLElement *  iface,
VARIANT_BOOL p 
)
static

Definition at line 1650 of file htmlelem.c.

1651{
1653
1654 TRACE("(%p)->(%p)\n", This, p);
1655
1656 *p = This->node.vtbl->is_text_edit && This->node.vtbl->is_text_edit(&This->node)
1657 ? VARIANT_TRUE : VARIANT_FALSE;
1658 return S_OK;
1659}

◆ HTMLElement_get_lang()

static HRESULT WINAPI HTMLElement_get_lang ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 1247 of file htmlelem.c.

1248{
1250 FIXME("(%p)->(%p)\n", This, p);
1251 return E_NOTIMPL;
1252}

◆ HTMLElement_get_language()

static HRESULT WINAPI HTMLElement_get_language ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 1141 of file htmlelem.c.

1142{
1144
1145 TRACE("(%p)->(%p)\n", This, p);
1146
1148}
HRESULT elem_string_attr_getter(HTMLElement *elem, const WCHAR *name, BOOL use_null, BSTR *p)
Definition: htmlelem.c:162
static const WCHAR languageW[]
Definition: htmlelem.c:1130

◆ HTMLElement_get_offsetHeight()

static HRESULT WINAPI HTMLElement_get_offsetHeight ( IHTMLElement *  iface,
LONG p 
)
static

Definition at line 1302 of file htmlelem.c.

1303{
1305 nsresult nsres;
1306
1307 TRACE("(%p)->(%p)\n", This, p);
1308
1309 nsres = nsIDOMHTMLElement_GetOffsetHeight(This->nselem, p);
1310 if(NS_FAILED(nsres)) {
1311 ERR("GetOffsetHeight failed: %08x\n", nsres);
1312 return E_FAIL;
1313 }
1314
1315 return S_OK;
1316}

◆ HTMLElement_get_offsetLeft()

static HRESULT WINAPI HTMLElement_get_offsetLeft ( IHTMLElement *  iface,
LONG p 
)
static

Definition at line 1254 of file htmlelem.c.

1255{
1257 nsresult nsres;
1258
1259 TRACE("(%p)->(%p)\n", This, p);
1260
1261 nsres = nsIDOMHTMLElement_GetOffsetLeft(This->nselem, p);
1262 if(NS_FAILED(nsres)) {
1263 ERR("GetOffsetLeft failed: %08x\n", nsres);
1264 return E_FAIL;
1265 }
1266
1267 return S_OK;
1268}

◆ HTMLElement_get_offsetParent()

static HRESULT WINAPI HTMLElement_get_offsetParent ( IHTMLElement *  iface,
IHTMLElement **  p 
)
static

Definition at line 1318 of file htmlelem.c.

1319{
1321 nsIDOMElement *nsparent;
1322 nsresult nsres;
1323 HRESULT hres;
1324
1325 TRACE("(%p)->(%p)\n", This, p);
1326
1327 nsres = nsIDOMHTMLElement_GetOffsetParent(This->nselem, &nsparent);
1328 if(NS_FAILED(nsres)) {
1329 ERR("GetOffsetParent failed: %08x\n", nsres);
1330 return E_FAIL;
1331 }
1332
1333 if(nsparent) {
1335
1336 hres = get_node(This->node.doc, (nsIDOMNode*)nsparent, TRUE, &node);
1337 nsIDOMElement_Release(nsparent);
1338 if(FAILED(hres))
1339 return hres;
1340
1341 hres = IHTMLDOMNode_QueryInterface(&node->IHTMLDOMNode_iface, &IID_IHTMLElement, (void**)p);
1343 }else {
1344 *p = NULL;
1345 hres = S_OK;
1346 }
1347
1348 return hres;
1349}
static void node_release(HTMLDOMNode *node)

◆ HTMLElement_get_offsetTop()

static HRESULT WINAPI HTMLElement_get_offsetTop ( IHTMLElement *  iface,
LONG p 
)
static

Definition at line 1270 of file htmlelem.c.

1271{
1273 nsresult nsres;
1274
1275 TRACE("(%p)->(%p)\n", This, p);
1276
1277 nsres = nsIDOMHTMLElement_GetOffsetTop(This->nselem, p);
1278 if(NS_FAILED(nsres)) {
1279 ERR("GetOffsetTop failed: %08x\n", nsres);
1280 return E_FAIL;
1281 }
1282
1283 return S_OK;
1284}

◆ HTMLElement_get_offsetWidth()

static HRESULT WINAPI HTMLElement_get_offsetWidth ( IHTMLElement *  iface,
LONG p 
)
static

Definition at line 1286 of file htmlelem.c.

1287{
1289 nsresult nsres;
1290
1291 TRACE("(%p)->(%p)\n", This, p);
1292
1293 nsres = nsIDOMHTMLElement_GetOffsetWidth(This->nselem, p);
1294 if(NS_FAILED(nsres)) {
1295 ERR("GetOffsetWidth failed: %08x\n", nsres);
1296 return E_FAIL;
1297 }
1298
1299 return S_OK;
1300}

◆ HTMLElement_get_onafterupdate()

static HRESULT WINAPI HTMLElement_get_onafterupdate ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1726 of file htmlelem.c.

1727{
1729 FIXME("(%p)->(%p)\n", This, p);
1730 return E_NOTIMPL;
1731}

◆ HTMLElement_get_onbeforeupdate()

static HRESULT WINAPI HTMLElement_get_onbeforeupdate ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1712 of file htmlelem.c.

1713{
1715 FIXME("(%p)->(%p)\n", This, p);
1716 return E_NOTIMPL;
1717}

◆ HTMLElement_get_onclick()

static HRESULT WINAPI HTMLElement_get_onclick ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 881 of file htmlelem.c.

882{
884
885 TRACE("(%p)->(%p)\n", This, p);
886
887 return get_node_event(&This->node, EVENTID_CLICK, p);
888}

◆ HTMLElement_get_ondataavailable()

static HRESULT WINAPI HTMLElement_get_ondataavailable ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1798 of file htmlelem.c.

1799{
1801
1802 TRACE("(%p)->(%p)\n", This, p);
1803
1804 return get_node_event(&This->node, EVENTID_DATAAVAILABLE, p);
1805}
@ EVENTID_DATAAVAILABLE
Definition: htmlevent.h:28

◆ HTMLElement_get_ondatasetchanged()

static HRESULT WINAPI HTMLElement_get_ondatasetchanged ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1782 of file htmlelem.c.

1783{
1785 FIXME("(%p)->(%p)\n", This, p);
1786 return E_NOTIMPL;
1787}

◆ HTMLElement_get_ondatasetcomplete()

static HRESULT WINAPI HTMLElement_get_ondatasetcomplete ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1814 of file htmlelem.c.

1815{
1817 FIXME("(%p)->(%p)\n", This, p);
1818 return E_NOTIMPL;
1819}

◆ HTMLElement_get_ondblclick()

static HRESULT WINAPI HTMLElement_get_ondblclick ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 899 of file htmlelem.c.

900{
902
903 TRACE("(%p)->(%p)\n", This, p);
904
905 return get_node_event(&This->node, EVENTID_DBLCLICK, p);
906}
@ EVENTID_DBLCLICK
Definition: htmlevent.h:29

◆ HTMLElement_get_ondragstart()

static HRESULT WINAPI HTMLElement_get_ondragstart ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1691 of file htmlelem.c.

1692{
1694 FIXME("(%p)->(%p)\n", This, p);
1695 return E_NOTIMPL;
1696}

◆ HTMLElement_get_onerrorupdate()

static HRESULT WINAPI HTMLElement_get_onerrorupdate ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1740 of file htmlelem.c.

1741{
1743 FIXME("(%p)->(%p)\n", This, p);
1744 return E_NOTIMPL;
1745}

◆ HTMLElement_get_onfilterchange()

static HRESULT WINAPI HTMLElement_get_onfilterchange ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1828 of file htmlelem.c.

1829{
1831 FIXME("(%p)->(%p)\n", This, p);
1832 return E_NOTIMPL;
1833}

◆ HTMLElement_get_onhelp()

static HRESULT WINAPI HTMLElement_get_onhelp ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 865 of file htmlelem.c.

866{
868 FIXME("(%p)->(%p)\n", This, p);
869 return E_NOTIMPL;
870}

◆ HTMLElement_get_onkeydown()

static HRESULT WINAPI HTMLElement_get_onkeydown ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 917 of file htmlelem.c.

918{
920
921 TRACE("(%p)->(%p)\n", This, p);
922
923 return get_node_event(&This->node, EVENTID_KEYDOWN, p);
924}
@ EVENTID_KEYDOWN
Definition: htmlevent.h:36

◆ HTMLElement_get_onkeypress()

static HRESULT WINAPI HTMLElement_get_onkeypress ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 951 of file htmlelem.c.

952{
954
955 TRACE("(%p)->(%p)\n", This, p);
956
957 return get_node_event(&This->node, EVENTID_KEYPRESS, p);
958}
@ EVENTID_KEYPRESS
Definition: htmlevent.h:37

◆ HTMLElement_get_onkeyup()

static HRESULT WINAPI HTMLElement_get_onkeyup ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 935 of file htmlelem.c.

936{
938 FIXME("(%p)->(%p)\n", This, p);
939 return E_NOTIMPL;
940}

◆ HTMLElement_get_onmousedown()

static HRESULT WINAPI HTMLElement_get_onmousedown ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1023 of file htmlelem.c.

1024{
1026
1027 TRACE("(%p)->(%p)\n", This, p);
1028
1029 return get_node_event(&This->node, EVENTID_MOUSEDOWN, p);
1030}
@ EVENTID_MOUSEDOWN
Definition: htmlevent.h:40

◆ HTMLElement_get_onmousemove()

static HRESULT WINAPI HTMLElement_get_onmousemove ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1005 of file htmlelem.c.

1006{
1008
1009 TRACE("(%p)->(%p)\n", This, p);
1010
1011 return get_node_event(&This->node, EVENTID_MOUSEMOVE, p);
1012}
@ EVENTID_MOUSEMOVE
Definition: htmlevent.h:41

◆ HTMLElement_get_onmouseout()

static HRESULT WINAPI HTMLElement_get_onmouseout ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 969 of file htmlelem.c.

970{
972
973 TRACE("(%p)->(%p)\n", This, p);
974
975 return get_node_event(&This->node, EVENTID_MOUSEOUT, p);
976}
@ EVENTID_MOUSEOUT
Definition: htmlevent.h:42

◆ HTMLElement_get_onmouseover()

static HRESULT WINAPI HTMLElement_get_onmouseover ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 987 of file htmlelem.c.

988{
990
991 TRACE("(%p)->(%p)\n", This, p);
992
993 return get_node_event(&This->node, EVENTID_MOUSEOVER, p);
994}
@ EVENTID_MOUSEOVER
Definition: htmlevent.h:43

◆ HTMLElement_get_onmouseup()

static HRESULT WINAPI HTMLElement_get_onmouseup ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1041 of file htmlelem.c.

1042{
1044
1045 TRACE("(%p)->(%p)\n", This, p);
1046
1047 return get_node_event(&This->node, EVENTID_MOUSEUP, p);
1048}
@ EVENTID_MOUSEUP
Definition: htmlevent.h:44

◆ HTMLElement_get_onrowenter()

static HRESULT WINAPI HTMLElement_get_onrowenter ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1768 of file htmlelem.c.

1769{
1771 FIXME("(%p)->(%p)\n", This, p);
1772 return E_NOTIMPL;
1773}

◆ HTMLElement_get_onrowexit()

static HRESULT WINAPI HTMLElement_get_onrowexit ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1754 of file htmlelem.c.

1755{
1757 FIXME("(%p)->(%p)\n", This, p);
1758 return E_NOTIMPL;
1759}

◆ HTMLElement_get_onselectstart()

static HRESULT WINAPI HTMLElement_get_onselectstart ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1159 of file htmlelem.c.

1160{
1162
1163 TRACE("(%p)->(%p)\n", This, p);
1164
1165 return get_node_event(&This->node, EVENTID_SELECTSTART, p);
1166}
@ EVENTID_SELECTSTART
Definition: htmlevent.h:50

◆ HTMLElement_get_outerHTML()

static HRESULT WINAPI HTMLElement_get_outerHTML ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 1457 of file htmlelem.c.

1458{
1461 HRESULT hres;
1462
1463 WARN("(%p)->(%p) semi-stub\n", This, p);
1464
1466 hres = nsnode_to_nsstring(This->node.nsnode, &html_str);
1467 if(SUCCEEDED(hres)) {
1468 const PRUnichar *html;
1469
1470 nsAString_GetData(&html_str, &html);
1471 *p = SysAllocString(html);
1472 if(!*p)
1474 }
1475
1477
1478 TRACE("ret %s\n", debugstr_w(*p));
1479 return hres;
1480}
HRESULT nsnode_to_nsstring(nsIDOMNode *, nsAString *) DECLSPEC_HIDDEN
Definition: nsembed.c:1000

◆ HTMLElement_get_outerText()

static HRESULT WINAPI HTMLElement_get_outerText ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 1489 of file htmlelem.c.

1490{
1492 FIXME("(%p)->(%p)\n", This, p);
1493 return E_NOTIMPL;
1494}

◆ HTMLElement_get_parentElement()

static HRESULT WINAPI HTMLElement_get_parentElement ( IHTMLElement *  iface,
IHTMLElement **  p 
)
static

Definition at line 819 of file htmlelem.c.

820{
822 IHTMLDOMNode *node;
824
825 TRACE("(%p)->(%p)\n", This, p);
826
827 hres = IHTMLDOMNode_get_parentNode(&This->node.IHTMLDOMNode_iface, &node);
828 if(FAILED(hres))
829 return hres;
830
831 hres = IHTMLDOMNode_QueryInterface(node, &IID_IHTMLElement, (void**)p);
832 IHTMLDOMNode_Release(node);
833 if(FAILED(hres))
834 *p = NULL;
835
836 return S_OK;
837}

◆ HTMLElement_get_parentTextEdit()

static HRESULT WINAPI HTMLElement_get_parentTextEdit ( IHTMLElement *  iface,
IHTMLElement **  p 
)
static

Definition at line 1643 of file htmlelem.c.

1644{
1646 FIXME("(%p)->(%p)\n", This, p);
1647 return E_NOTIMPL;
1648}

◆ HTMLElement_get_recordNumber()

static HRESULT WINAPI HTMLElement_get_recordNumber ( IHTMLElement *  iface,
VARIANT p 
)
static

Definition at line 1233 of file htmlelem.c.

1234{
1236 FIXME("(%p)->(%p)\n", This, p);
1237 return E_NOTIMPL;
1238}

◆ HTMLElement_get_sourceIndex()

static HRESULT WINAPI HTMLElement_get_sourceIndex ( IHTMLElement *  iface,
LONG p 
)
static

Definition at line 1224 of file htmlelem.c.

1225{
1227
1228 TRACE("(%p)->(%p)\n", This, p);
1229
1230 return get_elem_source_index(This, p);
1231}
HRESULT get_elem_source_index(HTMLElement *elem, LONG *ret)
Definition: htmlelemcol.c:740

◆ HTMLElement_get_style()

static HRESULT WINAPI HTMLElement_get_style ( IHTMLElement *  iface,
IHTMLStyle **  p 
)
static

Definition at line 839 of file htmlelem.c.

840{
842
843 TRACE("(%p)->(%p)\n", This, p);
844
845 if(!This->style) {
847
848 hres = HTMLStyle_Create(This, &This->style);
849 if(FAILED(hres))
850 return hres;
851 }
852
853 *p = &This->style->IHTMLStyle_iface;
854 IHTMLStyle_AddRef(*p);
855 return S_OK;
856}

◆ HTMLElement_get_tagName()

static HRESULT WINAPI HTMLElement_get_tagName ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 797 of file htmlelem.c.

798{
800 nsAString tag_str;
801 nsresult nsres;
802
803 TRACE("(%p)->(%p)\n", This, p);
804
805 if(!This->nselem) {
806 static const WCHAR comment_tagW[] = {'!',0};
807
808 WARN("NULL nselem, assuming comment\n");
809
810 *p = SysAllocString(comment_tagW);
811 return *p ? S_OK : E_OUTOFMEMORY;
812 }
813
814 nsAString_Init(&tag_str, NULL);
815 nsres = nsIDOMHTMLElement_GetTagName(This->nselem, &tag_str);
816 return return_nsstr(nsres, &tag_str, p);
817}

◆ HTMLElement_get_title()

static HRESULT WINAPI HTMLElement_get_title ( IHTMLElement *  iface,
BSTR p 
)
static

Definition at line 1100 of file htmlelem.c.

1101{
1103 nsAString title_str;
1104 nsresult nsres;
1105
1106 TRACE("(%p)->(%p)\n", This, p);
1107
1108 if(!This->nselem) {
1109 VARIANT *var;
1110 HRESULT hres;
1111
1112 hres = dispex_get_dprop_ref(&This->node.event_target.dispex, titleW, FALSE, &var);
1113 if(hres == DISP_E_UNKNOWNNAME) {
1114 *p = NULL;
1115 }else if(V_VT(var) != VT_BSTR) {
1116 FIXME("title = %s\n", debugstr_variant(var));
1117 return E_FAIL;
1118 }else {
1120 }
1121
1122 return S_OK;
1123 }
1124
1125 nsAString_Init(&title_str, NULL);
1126 nsres = nsIDOMHTMLElement_GetTitle(This->nselem, &title_str);
1127 return return_nsstr(nsres, &title_str, p);
1128}
static const WCHAR titleW[]
Definition: htmlelem.c:1067

◆ HTMLElement_getAttribute()

static HRESULT WINAPI HTMLElement_getAttribute ( IHTMLElement *  iface,
BSTR  strAttributeName,
LONG  lFlags,
VARIANT AttributeValue 
)
static

Definition at line 651 of file htmlelem.c.

653{
655 DISPID dispid;
657
658 TRACE("(%p)->(%s %08x %p)\n", This, debugstr_w(strAttributeName), lFlags, AttributeValue);
659
661 FIXME("Unsupported flags %x\n", lFlags);
662
663 hres = IDispatchEx_GetDispID(&This->node.event_target.dispex.IDispatchEx_iface, strAttributeName,
664 lFlags&ATTRFLAG_CASESENSITIVE ? fdexNameCaseSensitive : fdexNameCaseInsensitive, &dispid);
665 if(hres == DISP_E_UNKNOWNNAME) {
666 V_VT(AttributeValue) = VT_NULL;
667 return S_OK;
668 }
669
670 if(FAILED(hres)) {
671 V_VT(AttributeValue) = VT_NULL;
672 return hres;
673 }
674
675 return get_elem_attr_value_by_dispid(This, dispid, lFlags, AttributeValue);
676}
@ VT_NULL
Definition: compat.h:2296
HRESULT get_elem_attr_value_by_dispid(HTMLElement *elem, DISPID dispid, DWORD flags, VARIANT *ret)
Definition: htmlelem.c:621
#define ATTRFLAG_CASESENSITIVE

◆ HTMLElement_GetIDsOfNames()

static HRESULT WINAPI HTMLElement_GetIDsOfNames ( IHTMLElement *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 573 of file htmlelem.c.

576{
578 return IDispatchEx_GetIDsOfNames(&This->node.event_target.dispex.IDispatchEx_iface, riid, rgszNames, cNames,
579 lcid, rgDispId);
580}

◆ HTMLElement_GetTypeInfo()

static HRESULT WINAPI HTMLElement_GetTypeInfo ( IHTMLElement *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 566 of file htmlelem.c.

568{
570 return IDispatchEx_GetTypeInfo(&This->node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
571}

◆ HTMLElement_GetTypeInfoCount()

static HRESULT WINAPI HTMLElement_GetTypeInfoCount ( IHTMLElement *  iface,
UINT pctinfo 
)
static

Definition at line 560 of file htmlelem.c.

561{
563 return IDispatchEx_GetTypeInfoCount(&This->node.event_target.dispex.IDispatchEx_iface, pctinfo);
564}

◆ HTMLElement_handle_event()

HRESULT HTMLElement_handle_event ( HTMLDOMNode iface,
DWORD  eid,
nsIDOMEvent event,
BOOL prevent_default 
)

Definition at line 3815 of file htmlelem.c.

3816{
3818
3819 switch(eid) {
3820 case EVENTID_KEYDOWN: {
3822 nsresult nsres;
3823
3824 nsres = nsIDOMEvent_QueryInterface(event, &IID_nsIDOMKeyEvent, (void**)&key_event);
3825 if(NS_SUCCEEDED(nsres)) {
3826 UINT32 code = 0;
3827
3828 nsIDOMKeyEvent_GetKeyCode(key_event, &code);
3829
3830 switch(code) {
3831 case VK_F1: /* DOM_VK_F1 */
3832 TRACE("F1 pressed\n");
3833 fire_event(This->node.doc, EVENTID_HELP, TRUE, This->node.nsnode, NULL, NULL);
3834 *prevent_default = TRUE;
3835 }
3836
3837 nsIDOMKeyEvent_Release(key_event);
3838 }
3839 }
3840 }
3841
3842 return S_OK;
3843}
unsigned int UINT32
void fire_event(HTMLDocumentNode *doc, eventid_t eid, BOOL set_event, nsIDOMNode *target, nsIDOMEvent *nsevent, IDispatch *script_this)
Definition: htmlevent.c:1195
@ EVENTID_HELP
Definition: htmlevent.h:35
#define NS_SUCCEEDED(res)
Definition: inflate.c:139
void key_event(int scancode, int pressed)
Definition: svgawin.c:773
#define VK_F1
Definition: winuser.h:2255

Referenced by HTMLAnchorElement_handle_event(), HTMLAreaElement_handle_event(), and HTMLFormElement_handle_event().

◆ HTMLElement_Init()

void HTMLElement_Init ( HTMLElement This,
HTMLDocumentNode doc,
nsIDOMHTMLElement nselem,
dispex_static_data_t dispex_data 
)

Definition at line 4008 of file htmlelem.c.

4009{
4010 This->IHTMLElement_iface.lpVtbl = &HTMLElementVtbl;
4011 This->IHTMLElement2_iface.lpVtbl = &HTMLElement2Vtbl;
4012 This->IHTMLElement3_iface.lpVtbl = &HTMLElement3Vtbl;
4013 This->IHTMLElement4_iface.lpVtbl = &HTMLElement4Vtbl;
4014
4015 if(dispex_data && !dispex_data->vtbl)
4016 dispex_data->vtbl = &HTMLElement_dispex_vtbl;
4017 init_dispex(&This->node.event_target.dispex, (IUnknown*)&This->IHTMLElement_iface,
4018 dispex_data ? dispex_data : &HTMLElement_dispex);
4019
4020 if(nselem) {
4021 HTMLDOMNode_Init(doc, &This->node, (nsIDOMNode*)nselem);
4022
4023 /* No AddRef, share reference with HTMLDOMNode */
4024 assert((nsIDOMNode*)nselem == This->node.nsnode);
4025 This->nselem = nselem;
4026 }
4027
4028 This->node.cp_container = &This->cp_container;
4029 ConnectionPointContainer_Init(&This->cp_container, (IUnknown*)&This->IHTMLElement_iface, This->node.vtbl->cpc_entries);
4030}
void ConnectionPointContainer_Init(ConnectionPointContainer *This, IUnknown *impl)
Definition: events.c:431
static dispex_static_data_vtbl_t HTMLElement_dispex_vtbl
Definition: htmlelem.c:3992
static const IHTMLElement2Vtbl HTMLElement2Vtbl
Definition: htmlelem.c:2977
static const IHTMLElement3Vtbl HTMLElement3Vtbl
Definition: htmlelem.c:3501
static const IHTMLElementVtbl HTMLElementVtbl
Definition: htmlelem.c:1865
static const IHTMLElement4Vtbl HTMLElement4Vtbl
Definition: htmlelem.c:3711
void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsnode)
Definition: htmlnode.c:1196
const dispex_static_data_vtbl_t * vtbl

Referenced by HTMLAnchorElement_Create(), HTMLAreaElement_Create(), HTMLButtonElement_Create(), HTMLCommentElement_Create(), HTMLElement_Create(), HTMLEmbedElement_Create(), HTMLFormElement_Create(), HTMLFrameBase_Init(), HTMLGenericElement_Create(), HTMLHeadElement_Create(), HTMLImgElement_Create(), HTMLInputElement_Create(), HTMLLabelElement_Create(), HTMLLinkElement_Create(), HTMLMetaElement_Create(), HTMLObjectElement_Create(), HTMLOptionElement_Create(), HTMLScriptElement_Create(), HTMLSelectElement_Create(), HTMLStyleElement_Create(), HTMLTable_Create(), HTMLTableCell_Create(), HTMLTableRow_Create(), HTMLTextAreaElement_Create(), HTMLTextContainer_Init(), and HTMLTitleElement_Create().

◆ HTMLElement_insertAdjacentHTML()

static HRESULT WINAPI HTMLElement_insertAdjacentHTML ( IHTMLElement *  iface,
BSTR  where,
BSTR  html 
)
static

Definition at line 1568 of file htmlelem.c.

1570{
1573 nsIDOMNode *nsnode;
1574 nsAString ns_html;
1575 nsresult nsres;
1576 HRESULT hr;
1577
1578 TRACE("(%p)->(%s %s)\n", This, debugstr_w(where), debugstr_w(html));
1579
1580 if(!This->node.doc->nsdoc) {
1581 WARN("NULL nsdoc\n");
1582 return E_UNEXPECTED;
1583 }
1584
1585 nsres = nsIDOMHTMLDocument_CreateRange(This->node.doc->nsdoc, &range);
1586 if(NS_FAILED(nsres))
1587 {
1588 ERR("CreateRange failed: %08x\n", nsres);
1589 return E_FAIL;
1590 }
1591
1592 nsIDOMRange_SetStartBefore(range, This->node.nsnode);
1593
1594 nsAString_InitDepend(&ns_html, html);
1595 nsres = nsIDOMRange_CreateContextualFragment(range, &ns_html, (nsIDOMDocumentFragment **)&nsnode);
1596 nsAString_Finish(&ns_html);
1597 nsIDOMRange_Release(range);
1598
1599 if(NS_FAILED(nsres) || !nsnode)
1600 {
1601 ERR("CreateTextNode failed: %08x\n", nsres);
1602 return E_FAIL;
1603 }
1604
1605 hr = insert_adjacent_node(This, where, nsnode, NULL);
1606 nsIDOMNode_Release(nsnode);
1607 return hr;
1608}
HRESULT hr
Definition: shlfolder.c:183

◆ HTMLElement_insertAdjacentText()

static HRESULT WINAPI HTMLElement_insertAdjacentText ( IHTMLElement *  iface,
BSTR  where,
BSTR  text 
)
static

Definition at line 1610 of file htmlelem.c.

1612{
1614 nsIDOMNode *nsnode;
1615 nsAString ns_text;
1616 nsresult nsres;
1617 HRESULT hr;
1618
1619 TRACE("(%p)->(%s %s)\n", This, debugstr_w(where), debugstr_w(text));
1620
1621 if(!This->node.doc->nsdoc) {
1622 WARN("NULL nsdoc\n");
1623 return E_UNEXPECTED;
1624 }
1625
1626
1627 nsAString_InitDepend(&ns_text, text);
1628 nsres = nsIDOMHTMLDocument_CreateTextNode(This->node.doc->nsdoc, &ns_text, (nsIDOMText **)&nsnode);
1629 nsAString_Finish(&ns_text);
1630
1631 if(NS_FAILED(nsres) || !nsnode)
1632 {
1633 ERR("CreateTextNode failed: %08x\n", nsres);
1634 return E_FAIL;
1635 }
1636
1637 hr = insert_adjacent_node(This, where, nsnode, NULL);
1638 nsIDOMNode_Release(nsnode);
1639
1640 return hr;
1641}

◆ HTMLElement_invoke()

static HRESULT HTMLElement_invoke ( DispatchEx dispex,
DISPID  id,
LCID  lcid,
WORD  flags,
DISPPARAMS *  params,
VARIANT res,
EXCEPINFO *  ei,
IServiceProvider caller 
)
static

Definition at line 3877 of file htmlelem.c.

3880{
3882
3883 if(This->node.vtbl->invoke)
3884 return This->node.vtbl->invoke(&This->node, id, lcid, flags,
3885 params, res, ei, caller);
3886
3887 ERR("(%p): element has no invoke method\n", This);
3888 return E_NOTIMPL;
3889}

◆ HTMLElement_Invoke()

static HRESULT WINAPI HTMLElement_Invoke ( IHTMLElement *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 582 of file htmlelem.c.

585{
587 return IDispatchEx_Invoke(&This->node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
588 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
589}

◆ HTMLElement_populate_props()

static HRESULT HTMLElement_populate_props ( DispatchEx dispex)
static

Definition at line 3891 of file htmlelem.c.

3892{
3894 nsIDOMMozNamedAttrMap *attrs;
3896 nsAString nsstr;
3897 const PRUnichar *str;
3898 BSTR name;
3899 VARIANT value;
3900 unsigned i;
3901 UINT32 len;
3902 DISPID id;
3903 nsresult nsres;
3904 HRESULT hres;
3905
3906 if(!This->nselem)
3907 return S_FALSE;
3908
3909 nsres = nsIDOMHTMLElement_GetAttributes(This->nselem, &attrs);
3910 if(NS_FAILED(nsres))
3911 return E_FAIL;
3912
3913 nsres = nsIDOMMozNamedAttrMap_GetLength(attrs, &len);
3914 if(NS_FAILED(nsres)) {
3915 nsIDOMMozNamedAttrMap_Release(attrs);
3916 return E_FAIL;
3917 }
3918
3919 nsAString_Init(&nsstr, NULL);
3920 for(i=0; i<len; i++) {
3921 nsres = nsIDOMMozNamedAttrMap_Item(attrs, i, &attr);
3922 if(NS_FAILED(nsres))
3923 continue;
3924
3925 nsres = nsIDOMAttr_GetNodeName(attr, &nsstr);
3926 if(NS_FAILED(nsres)) {
3927 nsIDOMAttr_Release(attr);
3928 continue;
3929 }
3930
3931 nsAString_GetData(&nsstr, &str);
3933 if(!name) {
3934 nsIDOMAttr_Release(attr);
3935 continue;
3936 }
3937
3938 hres = IDispatchEx_GetDispID(&dispex->IDispatchEx_iface, name, fdexNameCaseInsensitive, &id);
3939 if(hres != DISP_E_UNKNOWNNAME) {
3940 nsIDOMAttr_Release(attr);
3942 continue;
3943 }
3944
3945 nsres = nsIDOMAttr_GetNodeValue(attr, &nsstr);
3946 nsIDOMAttr_Release(attr);
3947 if(NS_FAILED(nsres)) {
3949 continue;
3950 }
3951
3952 nsAString_GetData(&nsstr, &str);
3953 V_VT(&value) = VT_BSTR;
3954 if(*str) {
3956 if(!V_BSTR(&value)) {
3958 continue;
3959 }
3960 } else
3961 V_BSTR(&value) = NULL;
3962
3963 IHTMLElement_setAttribute(&This->IHTMLElement_iface, name, value, 0);
3966 }
3967 nsAString_Finish(&nsstr);
3968
3969 nsIDOMMozNamedAttrMap_Release(attrs);
3970 return S_OK;
3971}
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
IDispatchEx IDispatchEx_iface

◆ HTMLElement_put_className()

static HRESULT WINAPI HTMLElement_put_className ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 717 of file htmlelem.c.

718{
720 nsAString classname_str;
721 nsresult nsres;
722
723 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
724
725 if(!This->nselem) {
726 FIXME("NULL nselem\n");
727 return E_NOTIMPL;
728 }
729
730 nsAString_InitDepend(&classname_str, v);
731 nsres = nsIDOMHTMLElement_SetClassName(This->nselem, &classname_str);
732 nsAString_Finish(&classname_str);
733 if(NS_FAILED(nsres))
734 ERR("SetClassName failed: %08x\n", nsres);
735
736 return S_OK;
737}

◆ HTMLElement_put_id()

static HRESULT WINAPI HTMLElement_put_id ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 757 of file htmlelem.c.

758{
760 nsAString id_str;
761 nsresult nsres;
762
763 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
764
765 if(!This->nselem) {
766 FIXME("nselem == NULL\n");
767 return S_OK;
768 }
769
770 nsAString_InitDepend(&id_str, v);
771 nsres = nsIDOMHTMLElement_SetId(This->nselem, &id_str);
772 nsAString_Finish(&id_str);
773 if(NS_FAILED(nsres))
774 ERR("SetId failed: %08x\n", nsres);
775
776 return S_OK;
777}

◆ HTMLElement_put_innerHTML()

static HRESULT WINAPI HTMLElement_put_innerHTML ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 1351 of file htmlelem.c.

1352{
1355 nsresult nsres;
1356
1357 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1358
1359 if(!This->nselem) {
1360 FIXME("NULL nselem\n");
1361 return E_NOTIMPL;
1362 }
1363
1365 nsres = nsIDOMHTMLElement_SetInnerHTML(This->nselem, &html_str);
1367 if(NS_FAILED(nsres)) {
1368 FIXME("SetInnerHtml failed %08x\n", nsres);
1369 return E_FAIL;
1370 }
1371
1372 return S_OK;
1373}

◆ HTMLElement_put_innerText()

static HRESULT WINAPI HTMLElement_put_innerText ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 1393 of file htmlelem.c.

1394{
1396 nsIDOMNode *nschild, *tmp;
1397 nsIDOMText *text_node;
1398 nsAString text_str;
1399 nsresult nsres;
1400
1401 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1402
1403 while(1) {
1404 nsres = nsIDOMHTMLElement_GetLastChild(This->nselem, &nschild);
1405 if(NS_FAILED(nsres)) {
1406 ERR("GetLastChild failed: %08x\n", nsres);
1407 return E_FAIL;
1408 }
1409 if(!nschild)
1410 break;
1411
1412 nsres = nsIDOMHTMLElement_RemoveChild(This->nselem, nschild, &tmp);
1413 nsIDOMNode_Release(nschild);
1414 if(NS_FAILED(nsres)) {
1415 ERR("RemoveChild failed: %08x\n", nsres);
1416 return E_FAIL;
1417 }
1418 nsIDOMNode_Release(tmp);
1419 }
1420
1421 nsAString_InitDepend(&text_str, v);
1422 nsres = nsIDOMHTMLDocument_CreateTextNode(This->node.doc->nsdoc, &text_str, &text_node);
1423 nsAString_Finish(&text_str);
1424 if(NS_FAILED(nsres)) {
1425 ERR("CreateTextNode failed: %08x\n", nsres);
1426 return E_FAIL;
1427 }
1428
1429 nsres = nsIDOMHTMLElement_AppendChild(This->nselem, (nsIDOMNode*)text_node, &tmp);
1430 if(NS_FAILED(nsres)) {
1431 ERR("AppendChild failed: %08x\n", nsres);
1432 return E_FAIL;
1433 }
1434
1435 nsIDOMNode_Release(tmp);
1436 return S_OK;
1437}

◆ HTMLElement_put_lang()

static HRESULT WINAPI HTMLElement_put_lang ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 1240 of file htmlelem.c.

1241{
1243 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1244 return E_NOTIMPL;
1245}

◆ HTMLElement_put_language()

static HRESULT WINAPI HTMLElement_put_language ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 1132 of file htmlelem.c.

1133{
1135
1136 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1137
1139}
HRESULT elem_string_attr_setter(HTMLElement *elem, const WCHAR *name, const WCHAR *value)
Definition: htmlelem.c:186

◆ HTMLElement_put_onafterupdate()

static HRESULT WINAPI HTMLElement_put_onafterupdate ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1719 of file htmlelem.c.

1720{
1722 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1723 return E_NOTIMPL;
1724}

◆ HTMLElement_put_onbeforeupdate()

static HRESULT WINAPI HTMLElement_put_onbeforeupdate ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1705 of file htmlelem.c.

1706{
1708 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1709 return E_NOTIMPL;
1710}

◆ HTMLElement_put_onclick()

static HRESULT WINAPI HTMLElement_put_onclick ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 872 of file htmlelem.c.

873{
875
876 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
877
878 return set_node_event(&This->node, EVENTID_CLICK, &v);
879}

◆ HTMLElement_put_ondataavailable()

static HRESULT WINAPI HTMLElement_put_ondataavailable ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1789 of file htmlelem.c.

1790{
1792
1793 FIXME("(%p)->(%s) semi-stub\n", This, debugstr_variant(&v));
1794
1795 return set_node_event(&This->node, EVENTID_DATAAVAILABLE, &v);
1796}

◆ HTMLElement_put_ondatasetchanged()

static HRESULT WINAPI HTMLElement_put_ondatasetchanged ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1775 of file htmlelem.c.

1776{
1778 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1779 return E_NOTIMPL;
1780}

◆ HTMLElement_put_ondatasetcomplete()

static HRESULT WINAPI HTMLElement_put_ondatasetcomplete ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1807 of file htmlelem.c.

1808{
1810 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1811 return E_NOTIMPL;
1812}

◆ HTMLElement_put_ondblclick()

static HRESULT WINAPI HTMLElement_put_ondblclick ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 890 of file htmlelem.c.

891{
893
894 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
895
896 return set_node_event(&This->node, EVENTID_DBLCLICK, &v);
897}

◆ HTMLElement_put_ondragstart()

static HRESULT WINAPI HTMLElement_put_ondragstart ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1684 of file htmlelem.c.

1685{
1687 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1688 return E_NOTIMPL;
1689}

◆ HTMLElement_put_onerrorupdate()

static HRESULT WINAPI HTMLElement_put_onerrorupdate ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1733 of file htmlelem.c.

1734{
1736 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1737 return E_NOTIMPL;
1738}

◆ HTMLElement_put_onfilterchange()

static HRESULT WINAPI HTMLElement_put_onfilterchange ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1821 of file htmlelem.c.

1822{
1824 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1825 return E_NOTIMPL;
1826}

◆ HTMLElement_put_onhelp()

static HRESULT WINAPI HTMLElement_put_onhelp ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 858 of file htmlelem.c.

859{
861 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
862 return E_NOTIMPL;
863}

◆ HTMLElement_put_onkeydown()

static HRESULT WINAPI HTMLElement_put_onkeydown ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 908 of file htmlelem.c.

909{
911
912 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
913
914 return set_node_event(&This->node, EVENTID_KEYDOWN, &v);
915}

◆ HTMLElement_put_onkeypress()

static HRESULT WINAPI HTMLElement_put_onkeypress ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 942 of file htmlelem.c.

943{
945
946 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
947
948 return set_node_event(&This->node, EVENTID_KEYPRESS, &v);
949}

◆ HTMLElement_put_onkeyup()

static HRESULT WINAPI HTMLElement_put_onkeyup ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 926 of file htmlelem.c.

927{
929
930 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
931
932 return set_node_event(&This->node, EVENTID_KEYUP, &v);
933}
@ EVENTID_KEYUP
Definition: htmlevent.h:38

◆ HTMLElement_put_onmousedown()

static HRESULT WINAPI HTMLElement_put_onmousedown ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1014 of file htmlelem.c.

1015{
1017
1018 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1019
1020 return set_node_event(&This->node, EVENTID_MOUSEDOWN, &v);
1021}

◆ HTMLElement_put_onmousemove()

static HRESULT WINAPI HTMLElement_put_onmousemove ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 996 of file htmlelem.c.

997{
999
1000 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1001
1002 return set_node_event(&This->node, EVENTID_MOUSEMOVE, &v);
1003}

◆ HTMLElement_put_onmouseout()

static HRESULT WINAPI HTMLElement_put_onmouseout ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 960 of file htmlelem.c.

961{
963
964 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
965
966 return set_node_event(&This->node, EVENTID_MOUSEOUT, &v);
967}

◆ HTMLElement_put_onmouseover()

static HRESULT WINAPI HTMLElement_put_onmouseover ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 978 of file htmlelem.c.

979{
981
982 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
983
984 return set_node_event(&This->node, EVENTID_MOUSEOVER, &v);
985}

◆ HTMLElement_put_onmouseup()

static HRESULT WINAPI HTMLElement_put_onmouseup ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1032 of file htmlelem.c.

1033{
1035
1036 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1037
1038 return set_node_event(&This->node, EVENTID_MOUSEUP, &v);
1039}

◆ HTMLElement_put_onrowenter()

static HRESULT WINAPI HTMLElement_put_onrowenter ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1761 of file htmlelem.c.

1762{
1764 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1765 return E_NOTIMPL;
1766}

◆ HTMLElement_put_onrowexit()

static HRESULT WINAPI HTMLElement_put_onrowexit ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1747 of file htmlelem.c.

1748{
1750 FIXME("(%p)->(%s)\n", This, debugstr_variant(&v));
1751 return E_NOTIMPL;
1752}

◆ HTMLElement_put_onselectstart()

static HRESULT WINAPI HTMLElement_put_onselectstart ( IHTMLElement *  iface,
VARIANT  v 
)
static

Definition at line 1150 of file htmlelem.c.

1151{
1153
1154 TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
1155
1156 return set_node_event(&This->node, EVENTID_SELECTSTART, &v);
1157}

◆ HTMLElement_put_outerHTML()

static HRESULT WINAPI HTMLElement_put_outerHTML ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 1448 of file htmlelem.c.

1449{
1451
1452 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1453
1454 return replace_node_by_html(This->node.doc->nsdoc, This->node.nsnode, v);
1455}
HRESULT replace_node_by_html(nsIDOMHTMLDocument *nsdoc, nsIDOMNode *nsnode, const WCHAR *html)
Definition: htmlelem.c:98

◆ HTMLElement_put_outerText()

static HRESULT WINAPI HTMLElement_put_outerText ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 1482 of file htmlelem.c.

1483{
1485 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
1486 return E_NOTIMPL;
1487}

◆ HTMLElement_put_title()

static HRESULT WINAPI HTMLElement_put_title ( IHTMLElement *  iface,
BSTR  v 
)
static

Definition at line 1069 of file htmlelem.c.

1070{
1072 nsAString title_str;
1073 nsresult nsres;
1074
1075 TRACE("(%p)->(%s)\n", This, debugstr_w(v));
1076
1077 if(!This->nselem) {
1078 VARIANT *var;
1079 HRESULT hres;
1080
1081 hres = dispex_get_dprop_ref(&This->node.event_target.dispex, titleW, TRUE, &var);
1082 if(FAILED(hres))
1083 return hres;
1084
1086 V_VT(var) = VT_BSTR;
1087 V_BSTR(var) = v ? SysAllocString(v) : NULL;
1088 return S_OK;
1089 }
1090
1091 nsAString_InitDepend(&title_str, v);
1092 nsres = nsIDOMHTMLElement_SetTitle(This->nselem, &title_str);
1093 nsAString_Finish(&title_str);
1094 if(NS_FAILED(nsres))
1095 ERR("SetTitle failed: %08x\n", nsres);
1096
1097 return S_OK;
1098}

◆ HTMLElement_QI()

HRESULT HTMLElement_QI ( HTMLDOMNode iface,
REFIID  riid,
void **  ppv 
)

Definition at line 3738 of file htmlelem.c.

3739{
3741
3743 *ppv = &This->IHTMLElement_iface;
3744 }else if(IsEqualGUID(&IID_IDispatch, riid)) {
3745 *ppv = &This->IHTMLElement_iface;
3746 }else if(IsEqualGUID(&IID_IHTMLElement, riid)) {
3747 *ppv = &This->IHTMLElement_iface;
3748 }else if(IsEqualGUID(&IID_IHTMLElement2, riid)) {
3749 *ppv = &This->IHTMLElement2_iface;
3750 }else if(IsEqualGUID(&IID_IHTMLElement3, riid)) {
3751 *ppv = &This->IHTMLElement3_iface;
3752 }else if(IsEqualGUID(&IID_IHTMLElement4, riid)) {
3753 *ppv = &This->IHTMLElement4_iface;
3755 *ppv = &This->cp_container.IConnectionPointContainer_iface;
3756 }else {
3757 return HTMLDOMNode_QI(&This->node, riid, ppv);
3758 }
3759
3760 IUnknown_AddRef((IUnknown*)*ppv);
3761 return S_OK;
3762}
HRESULT HTMLDOMNode_QI(HTMLDOMNode *This, REFIID riid, void **ppv)
Definition: htmlnode.c:1142
const GUID IID_IConnectionPointContainer
const GUID IID_IDispatch

Referenced by HTMLAnchorElement_QI(), HTMLAreaElement_QI(), HTMLBodyElement_QI(), HTMLButtonElement_QI(), HTMLCommentElement_QI(), HTMLEmbedElement_QI(), HTMLFormElement_QI(), HTMLFrameBase_QI(), HTMLGenericElement_QI(), HTMLHeadElement_QI(), HTMLImgElement_QI(), HTMLInputElement_QI(), HTMLLabelElement_QI(), HTMLLinkElement_QI(), HTMLMetaElement_QI(), HTMLObjectElement_QI(), HTMLOptionElement_QI(), HTMLScriptElement_QI(), HTMLSelectElement_QI(), HTMLStyleElement_QI(), HTMLTable_QI(), HTMLTableCell_QI(), HTMLTableRow_QI(), HTMLTextAreaElement_QI(), and HTMLTitleElement_QI().

◆ HTMLElement_QueryInterface()

static HRESULT WINAPI HTMLElement_QueryInterface ( IHTMLElement *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 538 of file htmlelem.c.

540{
542
543 return IHTMLDOMNode_QueryInterface(&This->node.IHTMLDOMNode_iface, riid, ppv);
544}

◆ HTMLElement_Release()

static ULONG WINAPI HTMLElement_Release ( IHTMLElement *  iface)
static

Definition at line 553 of file htmlelem.c.

554{
556
557 return IHTMLDOMNode_Release(&This->node.IHTMLDOMNode_iface);
558}

◆ HTMLElement_removeAttribute()

static HRESULT WINAPI HTMLElement_removeAttribute ( IHTMLElement *  iface,
BSTR  strAttributeName,
LONG  lFlags,
VARIANT_BOOL pfSuccess 
)
static

Definition at line 678 of file htmlelem.c.

680{
682 DISPID id;
684
685 TRACE("(%p)->(%s %x %p)\n", This, debugstr_w(strAttributeName), lFlags, pfSuccess);
686
687 hres = IDispatchEx_GetDispID(&This->node.event_target.dispex.IDispatchEx_iface, strAttributeName,
688 lFlags&ATTRFLAG_CASESENSITIVE ? fdexNameCaseSensitive : fdexNameCaseInsensitive, &id);
689 if(hres == DISP_E_UNKNOWNNAME) {
690 *pfSuccess = VARIANT_FALSE;
691 return S_OK;
692 }
693 if(FAILED(hres))
694 return hres;
695
696 if(id == DISPID_IHTMLELEMENT_STYLE) {
697 IHTMLStyle *style;
698
699 TRACE("Special case: style\n");
700
701 hres = IHTMLElement_get_style(&This->IHTMLElement_iface, &style);
702 if(FAILED(hres))
703 return hres;
704
705 hres = IHTMLStyle_put_cssText(style, NULL);
706 IHTMLStyle_Release(style);
707 if(FAILED(hres))
708 return hres;
709
710 *pfSuccess = VARIANT_TRUE;
711 return S_OK;
712 }
713
714 return remove_attribute(&This->node.event_target.dispex, id, pfSuccess);
715}
Arabic default style
Definition: afstyles.h:94
#define DISPID_IHTMLELEMENT_STYLE
Definition: mshtmdid.h:1379
HRESULT remove_attribute(DispatchEx *This, DISPID id, VARIANT_BOOL *success)
Definition: dispex.c:1249

◆ HTMLElement_scrollIntoView()

static HRESULT WINAPI HTMLElement_scrollIntoView ( IHTMLElement *  iface,
VARIANT  varargStart 
)
static

Definition at line 1168 of file htmlelem.c.

1169{
1172 nsresult nsres;
1173
1174 TRACE("(%p)->(%s)\n", This, debugstr_variant(&varargStart));
1175
1176 switch(V_VT(&varargStart)) {
1177 case VT_EMPTY:
1178 case VT_ERROR:
1179 break;
1180 case VT_BOOL:
1181 start = V_BOOL(&varargStart) != VARIANT_FALSE;
1182 break;
1183 default:
1184 FIXME("Unsupported argument %s\n", debugstr_variant(&varargStart));
1185 }
1186
1187 if(!This->nselem) {
1188 FIXME("Unsupported for comments\n");
1189 return E_NOTIMPL;
1190 }
1191
1192 nsres = nsIDOMHTMLElement_ScrollIntoView(This->nselem, start, 1);
1193 assert(nsres == NS_OK);
1194
1195 return S_OK;
1196}
@ VT_ERROR
Definition: compat.h:2305
@ VT_EMPTY
Definition: compat.h:2295
GLuint start
Definition: gl.h:1545

◆ HTMLElement_setAttribute()

static HRESULT WINAPI HTMLElement_setAttribute ( IHTMLElement *  iface,
BSTR  strAttributeName,
VARIANT  AttributeValue,
LONG  lFlags 
)
static

Definition at line 591 of file htmlelem.c.

593{
596 DISPID dispid, dispidNamed = DISPID_PROPERTYPUT;
597 DISPPARAMS dispParams;
598 EXCEPINFO excep;
599
600 TRACE("(%p)->(%s %s %08x)\n", This, debugstr_w(strAttributeName), debugstr_variant(&AttributeValue), lFlags);
601
602 hres = IDispatchEx_GetDispID(&This->node.event_target.dispex.IDispatchEx_iface, strAttributeName,
603 (lFlags&ATTRFLAG_CASESENSITIVE ? fdexNameCaseSensitive : fdexNameCaseInsensitive) | fdexNameEnsure, &dispid);
604 if(FAILED(hres))
605 return hres;
606
607 if(dispid == DISPID_IHTMLELEMENT_STYLE) {
608 TRACE("Ignoring call on style attribute\n");
609 return S_OK;
610 }
611
612 dispParams.cArgs = 1;
613 dispParams.cNamedArgs = 1;
614 dispParams.rgdispidNamedArgs = &dispidNamed;
615 dispParams.rgvarg = &AttributeValue;
616
617 return IDispatchEx_InvokeEx(&This->node.event_target.dispex.IDispatchEx_iface, dispid,
618 LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, &dispParams, NULL, &excep, NULL);
619}
#define DISPATCH_PROPERTYPUT
Definition: oleauto.h:1008

◆ HTMLElement_toString()

static HRESULT WINAPI HTMLElement_toString ( IHTMLElement *  iface,
BSTR String 
)
static

Definition at line 1698 of file htmlelem.c.

1699{
1701 FIXME("(%p)->(%p)\n", This, String);
1702 return E_NOTIMPL;
1703}
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433

◆ HTMLFiltersCollection_AddRef()

static ULONG WINAPI HTMLFiltersCollection_AddRef ( IHTMLFiltersCollection *  iface)
static

Definition at line 4115 of file htmlelem.c.

4116{
4119
4120 TRACE("(%p) ref=%d\n", This, ref);
4121
4122 return ref;
4123}
static HTMLFiltersCollection * impl_from_IHTMLFiltersCollection(IHTMLFiltersCollection *iface)
Definition: htmlelem.c:234

◆ HTMLFiltersCollection_Create()

static IHTMLFiltersCollection * HTMLFiltersCollection_Create ( void  )
static

Definition at line 4257 of file htmlelem.c.

4258{
4260
4261 ret->IHTMLFiltersCollection_iface.lpVtbl = &HTMLFiltersCollectionVtbl;
4262 ret->ref = 1;
4263
4264 init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLFiltersCollection_iface,
4266
4267 return &ret->IHTMLFiltersCollection_iface;
4268}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
static dispex_static_data_t HTMLFiltersCollection_dispex
Definition: htmlelem.c:4250
static const IHTMLFiltersCollectionVtbl HTMLFiltersCollectionVtbl
Definition: htmlelem.c:4198

Referenced by HTMLElement_get_filters().

◆ HTMLFiltersCollection_get__newEnum()

static HRESULT WINAPI HTMLFiltersCollection_get__newEnum ( IHTMLFiltersCollection *  iface,
IUnknown **  p 
)
static

Definition at line 4184 of file htmlelem.c.

4185{
4187 FIXME("(%p)->(%p)\n", This, p);
4188 return E_NOTIMPL;
4189}

◆ HTMLFiltersCollection_get_dispid()

static HRESULT HTMLFiltersCollection_get_dispid ( DispatchEx dispex,
BSTR  name,
DWORD  flags,
DISPID dispid 
)
static

Definition at line 4211 of file htmlelem.c.

4212{
4213 WCHAR *ptr;
4214 int idx = 0;
4215
4216 for(ptr = name; *ptr && isdigitW(*ptr); ptr++)
4217 idx = idx*10 + (*ptr-'0');
4218 if(*ptr)
4219 return DISP_E_UNKNOWNNAME;
4220
4221 *dispid = MSHTML_DISPID_CUSTOM_MIN + idx;
4222 TRACE("ret %x\n", *dispid);
4223 return S_OK;
4224}
static PVOID ptr
Definition: dispmode.c:27
#define isdigitW(n)
Definition: unicode.h:50

◆ HTMLFiltersCollection_get_length()

static HRESULT WINAPI HTMLFiltersCollection_get_length ( IHTMLFiltersCollection *  iface,
LONG p 
)
static

Definition at line 4171 of file htmlelem.c.

4172{
4174
4175 if(!p)
4176 return E_POINTER;
4177
4178 FIXME("(%p)->(%p) Always returning 0\n", This, p);
4179 *p = 0;
4180
4181 return S_OK;
4182}

◆ HTMLFiltersCollection_GetIDsOfNames()

static HRESULT WINAPI HTMLFiltersCollection_GetIDsOfNames ( IHTMLFiltersCollection *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 4153 of file htmlelem.c.

4156{
4158 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
4159 lcid, rgDispId);
4160}

◆ HTMLFiltersCollection_GetTypeInfo()

static HRESULT WINAPI HTMLFiltersCollection_GetTypeInfo ( IHTMLFiltersCollection *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 4146 of file htmlelem.c.

4148{
4150 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
4151}

◆ HTMLFiltersCollection_GetTypeInfoCount()

static HRESULT WINAPI HTMLFiltersCollection_GetTypeInfoCount ( IHTMLFiltersCollection *  iface,
UINT pctinfo 
)
static

Definition at line 4140 of file htmlelem.c.

4141{
4143 return IDispatchEx_GetTypeInfoCount(&This->dispex.IDispatchEx_iface, pctinfo);
4144}

◆ HTMLFiltersCollection_invoke()

static HRESULT HTMLFiltersCollection_invoke ( DispatchEx dispex,
DISPID  id,
LCID  lcid,
WORD  flags,
DISPPARAMS *  params,
VARIANT res,
EXCEPINFO *  ei,
IServiceProvider caller 
)
static

Definition at line 4226 of file htmlelem.c.

4228{
4229 TRACE("(%p)->(%x %x %x %p %p %p)\n", dispex, id, lcid, flags, params, res, ei);
4230
4231 V_VT(res) = VT_DISPATCH;
4232 V_DISPATCH(res) = NULL;
4233
4234 FIXME("always returning NULL\n");
4235
4236 return S_OK;
4237}

◆ HTMLFiltersCollection_Invoke()

static HRESULT WINAPI HTMLFiltersCollection_Invoke ( IHTMLFiltersCollection *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 4162 of file htmlelem.c.

4165{
4167 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid,
4168 wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
4169}

◆ HTMLFiltersCollection_item()

static HRESULT WINAPI HTMLFiltersCollection_item ( IHTMLFiltersCollection *  iface,
VARIANT pvarIndex,
VARIANT pvarResult 
)
static

Definition at line 4191 of file htmlelem.c.

4192{
4194 FIXME("(%p)->(%p, %p)\n", This, pvarIndex, pvarResult);
4195 return E_NOTIMPL;
4196}

◆ HTMLFiltersCollection_QueryInterface()

static HRESULT WINAPI HTMLFiltersCollection_QueryInterface ( IHTMLFiltersCollection *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 4092 of file htmlelem.c.

4093{
4095
4096 TRACE("%p %s %p\n", This, debugstr_mshtml_guid(riid), ppv );
4097
4099 *ppv = &This->IHTMLFiltersCollection_iface;
4100 }else if(IsEqualGUID(&IID_IHTMLFiltersCollection, riid)) {
4101 TRACE("(%p)->(IID_IHTMLFiltersCollection %p)\n", This, ppv);
4102 *ppv = &This->IHTMLFiltersCollection_iface;
4103 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
4104 return *ppv ? S_OK : E_NOINTERFACE;
4105 }else {
4106 *ppv = NULL;
4107 FIXME("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
4108 return E_NOINTERFACE;
4109 }
4110
4111 IUnknown_AddRef((IUnknown*)*ppv);
4112 return S_OK;
4113}

◆ HTMLFiltersCollection_Release()

static ULONG WINAPI HTMLFiltersCollection_Release ( IHTMLFiltersCollection *  iface)
static

Definition at line 4125 of file htmlelem.c.

4126{
4129
4130 TRACE("(%p) ref=%d\n", This, ref);
4131
4132 if(!ref)
4133 {
4134 heap_free(This);
4135 }
4136
4137 return ref;
4138}

◆ HTMLRect_AddRef()

static ULONG WINAPI HTMLRect_AddRef ( IHTMLRect *  iface)
static

Definition at line 329 of file htmlelem.c.

330{
333
334 TRACE("(%p) ref=%d\n", This, ref);
335
336 return ref;
337}
static HTMLRect * impl_from_IHTMLRect(IHTMLRect *iface)
Definition: htmlelem.c:302

◆ HTMLRect_get_bottom()

static HRESULT WINAPI HTMLRect_get_bottom ( IHTMLRect *  iface,
LONG p 
)
static

Definition at line 471 of file htmlelem.c.

472{
474 float bottom;
475 nsresult nsres;
476
477 TRACE("(%p)->(%p)\n", This, p);
478
479 nsres = nsIDOMClientRect_GetBottom(This->nsrect, &bottom);
480 if(NS_FAILED(nsres)) {
481 ERR("GetBottom failed: %08x\n", nsres);
482 return E_FAIL;
483 }
484
485 *p = floor(bottom+0.5);
486 return S_OK;
487}
GLint GLint bottom
Definition: glext.h:7726
_Check_return_ _CRTIMP double __cdecl floor(_In_ double x)

◆ HTMLRect_get_left()

static HRESULT WINAPI HTMLRect_get_left ( IHTMLRect *  iface,
LONG p 
)
static

Definition at line 396 of file htmlelem.c.

397{
399 float left;
400 nsresult nsres;
401
402 TRACE("(%p)->(%p)\n", This, p);
403
404 nsres = nsIDOMClientRect_GetLeft(This->nsrect, &left);
405 if(NS_FAILED(nsres)) {
406 ERR("GetLeft failed: %08x\n", nsres);
407 return E_FAIL;
408 }
409
410 *p = floor(left+0.5);
411 return S_OK;
412}
GLint left
Definition: glext.h:7726

◆ HTMLRect_get_right()

static HRESULT WINAPI HTMLRect_get_right ( IHTMLRect *  iface,
LONG p 
)
static

Definition at line 446 of file htmlelem.c.

447{
449 float right;
450 nsresult nsres;
451
452 TRACE("(%p)->(%p)\n", This, p);
453
454 nsres = nsIDOMClientRect_GetRight(This->nsrect, &right);
455 if(NS_FAILED(nsres)) {
456 ERR("GetRight failed: %08x\n", nsres);
457 return E_FAIL;
458 }
459
460 *p = floor(right+0.5);
461 return S_OK;
462}
GLdouble GLdouble right
Definition: glext.h:10859

◆ HTMLRect_get_top()

static HRESULT WINAPI HTMLRect_get_top ( IHTMLRect *  iface,
LONG p 
)
static

Definition at line 421 of file htmlelem.c.

422{
424 float top;
425 nsresult nsres;
426
427 TRACE("(%p)->(%p)\n", This, p);
428
429 nsres = nsIDOMClientRect_GetTop(This->nsrect, &top);
430 if(NS_FAILED(nsres)) {
431 ERR("GetTop failed: %08x\n", nsres);
432 return E_FAIL;
433 }
434
435 *p = floor(top+0.5);
436 return S_OK;
437}
GLdouble GLdouble GLdouble GLdouble top
Definition: glext.h:10859

◆ HTMLRect_GetIDsOfNames()

static HRESULT WINAPI HTMLRect_GetIDsOfNames ( IHTMLRect *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 370 of file htmlelem.c.

372{
374
375 return IDispatchEx_GetIDsOfNames(&This->dispex.IDispatchEx_iface, riid, rgszNames, cNames,
376 lcid, rgDispId);
377}

◆ HTMLRect_GetTypeInfo()

static HRESULT WINAPI HTMLRect_GetTypeInfo ( IHTMLRect *  iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 362 of file htmlelem.c.

364{
366
367 return IDispatchEx_GetTypeInfo(&This->dispex.IDispatchEx_iface, iTInfo, lcid, ppTInfo);
368}

◆ HTMLRect_GetTypeInfoCount()

static HRESULT WINAPI HTMLRect_GetTypeInfoCount ( IHTMLRect *  iface,
UINT pctinfo 
)
static

Definition at line 355 of file htmlelem.c.

356{
358 FIXME("(%p)->(%p)\n", This, pctinfo);
359 return E_NOTIMPL;
360}

◆ HTMLRect_Invoke()

static HRESULT WINAPI HTMLRect_Invoke ( IHTMLRect *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 379 of file htmlelem.c.

382{
384
385 return IDispatchEx_Invoke(&This->dispex.IDispatchEx_iface, dispIdMember, riid, lcid, wFlags,
386 pDispParams, pVarResult, pExcepInfo, puArgErr);
387}

◆ HTMLRect_put_bottom()

static HRESULT WINAPI HTMLRect_put_bottom ( IHTMLRect *  iface,
LONG  v 
)
static

Definition at line 464 of file htmlelem.c.

465{
467 FIXME("(%p)->(%d)\n", This, v);
468 return E_NOTIMPL;
469}

◆ HTMLRect_put_left()

static HRESULT WINAPI HTMLRect_put_left ( IHTMLRect *  iface,
LONG  v 
)
static

Definition at line 389 of file htmlelem.c.

390{
392 FIXME("(%p)->(%d)\n", This, v);
393 return E_NOTIMPL;
394}

◆ HTMLRect_put_right()

static HRESULT WINAPI HTMLRect_put_right ( IHTMLRect *  iface,
LONG  v 
)
static

Definition at line 439 of file htmlelem.c.

440{
442 FIXME("(%p)->(%d)\n", This, v);
443 return E_NOTIMPL;
444}

◆ HTMLRect_put_top()

static HRESULT WINAPI HTMLRect_put_top ( IHTMLRect *  iface,
LONG  v 
)
static

Definition at line 414 of file htmlelem.c.

415{
417 FIXME("(%p)->(%d)\n", This, v);
418 return E_NOTIMPL;
419}

◆ HTMLRect_QueryInterface()

static HRESULT WINAPI HTMLRect_QueryInterface ( IHTMLRect *  iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 307 of file htmlelem.c.

308{
310
311 TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
312
314 *ppv = &This->IHTMLRect_iface;
315 }else if(IsEqualGUID(&IID_IHTMLRect, riid)) {
316 *ppv = &This->IHTMLRect_iface;
317 }else if(dispex_query_interface(&This->dispex, riid, ppv)) {
318 return *ppv ? S_OK : E_NOINTERFACE;
319 }else {
320 FIXME("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
321 *ppv = NULL;
322 return E_NOINTERFACE;
323 }
324
325 IUnknown_AddRef((IUnknown*)*ppv);
326 return S_OK;
327}

◆ HTMLRect_Release()

static ULONG WINAPI HTMLRect_Release ( IHTMLRect *  iface)
static

Definition at line 339 of file htmlelem.c.

340{
343
344 TRACE("(%p) ref=%d\n", This, ref);
345
346 if(!ref) {
347 if(This->nsrect)
348 nsIDOMClientRect_Release(This->nsrect);
350 }
351
352 return ref;
353}

◆ impl_from_DispatchEx()

static HTMLElement * impl_from_DispatchEx ( DispatchEx iface)
inlinestatic

◆ impl_from_HTMLDOMNode()

static HTMLElement * impl_from_HTMLDOMNode ( HTMLDOMNode iface)
inlinestatic

◆ impl_from_IHTMLAttributeCollection()

◆ impl_from_IHTMLAttributeCollection2()

◆ impl_from_IHTMLAttributeCollection3()

◆ impl_from_IHTMLElement()

static HTMLElement * impl_from_IHTMLElement ( IHTMLElement *  iface)
inlinestatic

Definition at line 241 of file htmlelem.c.

242{
243 return CONTAINING_RECORD(iface, HTMLElement, IHTMLElement_iface);
244}

Referenced by HTMLElement_AddRef(), HTMLElement_click(), HTMLElement_contains(), HTMLElement_get_all(), HTMLElement_get_children(), HTMLElement_get_className(), HTMLElement_get_document(), HTMLElement_get_filters(), HTMLElement_get_id(), HTMLElement_get_innerHTML(), HTMLElement_get_innerText(), HTMLElement_get_isTextEdit(), HTMLElement_get_lang(), HTMLElement_get_language(), HTMLElement_get_offsetHeight(), HTMLElement_get_offsetLeft(), HTMLElement_get_offsetParent(), HTMLElement_get_offsetTop(), HTMLElement_get_offsetWidth(), HTMLElement_get_onafterupdate(), HTMLElement_get_onbeforeupdate(), HTMLElement_get_onclick(), HTMLElement_get_ondataavailable(), HTMLElement_get_ondatasetchanged(), HTMLElement_get_ondatasetcomplete(), HTMLElement_get_ondblclick(), HTMLElement_get_ondragstart(), HTMLElement_get_onerrorupdate(), HTMLElement_get_onfilterchange(), HTMLElement_get_onhelp(), HTMLElement_get_onkeydown(), HTMLElement_get_onkeypress(), HTMLElement_get_onkeyup(), HTMLElement_get_onmousedown(), HTMLElement_get_onmousemove(), HTMLElement_get_onmouseout(), HTMLElement_get_onmouseover(), HTMLElement_get_onmouseup(), HTMLElement_get_onrowenter(), HTMLElement_get_onrowexit(), HTMLElement_get_onselectstart(), HTMLElement_get_outerHTML(), HTMLElement_get_outerText(), HTMLElement_get_parentElement(), HTMLElement_get_parentTextEdit(), HTMLElement_get_recordNumber(), HTMLElement_get_sourceIndex(), HTMLElement_get_style(), HTMLElement_get_tagName(), HTMLElement_get_title(), HTMLElement_getAttribute(), HTMLElement_GetIDsOfNames(), HTMLElement_GetTypeInfo(), HTMLElement_GetTypeInfoCount(), HTMLElement_insertAdjacentHTML(), HTMLElement_insertAdjacentText(), HTMLElement_Invoke(), HTMLElement_put_className(), HTMLElement_put_id(), HTMLElement_put_innerHTML(), HTMLElement_put_innerText(), HTMLElement_put_lang(), HTMLElement_put_language(), HTMLElement_put_onafterupdate(), HTMLElement_put_onbeforeupdate(), HTMLElement_put_onclick(), HTMLElement_put_ondataavailable(), HTMLElement_put_ondatasetchanged(), HTMLElement_put_ondatasetcomplete(), HTMLElement_put_ondblclick(), HTMLElement_put_ondragstart(), HTMLElement_put_onerrorupdate(), HTMLElement_put_onfilterchange(), HTMLElement_put_onhelp(), HTMLElement_put_onkeydown(), HTMLElement_put_onkeypress(), HTMLElement_put_onkeyup(), HTMLElement_put_onmousedown(), HTMLElement_put_onmousemove(), HTMLElement_put_onmouseout(), HTMLElement_put_onmouseover(), HTMLElement_put_onmouseup(), HTMLElement_put_onrowenter(), HTMLElement_put_onrowexit(), HTMLElement_put_onselectstart(), HTMLElement_put_outerHTML(), HTMLElement_put_outerText(), HTMLElement_put_title(), HTMLElement_QueryInterface(), HTMLElement_Release(), HTMLElement_removeAttribute(), HTMLElement_scrollIntoView(), HTMLElement_setAttribute(), HTMLElement_toString(), and unsafe_impl_from_IHTMLElement().

◆ impl_from_IHTMLElement2()

static HTMLElement * impl_from_IHTMLElement2 ( IHTMLElement2 *  iface)
inlinestatic

Definition at line 1967 of file htmlelem.c.

1968{
1969 return CONTAINING_RECORD(iface, HTMLElement, IHTMLElement2_iface);
1970}

Referenced by HTMLElement2_addBehavior(), HTMLElement2_addFilter(), HTMLElement2_AddRef(), HTMLElement2_applyElement(), HTMLElement2_attachEvent(), HTMLElement2_blur(), HTMLElement2_clearAttributes(), HTMLElement2_componentFromPoint(), HTMLElement2_createControlRange(), HTMLElement2_detachEvent(), HTMLElement2_doScroll(), HTMLElement2_focus(), HTMLElement2_get_accessKey(), HTMLElement2_get_behaviorUrns(), HTMLElement2_get_canHandleChildren(), HTMLElement2_get_clientHeight(), HTMLElement2_get_clientLeft(), HTMLElement2_get_clientTop(), HTMLElement2_get_clientWidth(), HTMLElement2_get_currentStyle(), HTMLElement2_get_dir(), HTMLElement2_get_onbeforecopy(), HTMLElement2_get_onbeforecut(), HTMLElement2_get_onbeforeeditfocus(), HTMLElement2_get_onbeforepaste(), HTMLElement2_get_onblur(), HTMLElement2_get_oncellchange(), HTMLElement2_get_oncontextmenu(), HTMLElement2_get_oncopy(), HTMLElement2_get_oncut(), HTMLElement2_get_ondrag(), HTMLElement2_get_ondragend(), HTMLElement2_get_ondragenter(), HTMLElement2_get_ondragleave(), HTMLElement2_get_ondragover(), HTMLElement2_get_ondrop(), HTMLElement2_get_onfocus(), HTMLElement2_get_onlosecapture(), HTMLElement2_get_onpaste(), HTMLElement2_get_onpropertychange(), HTMLElement2_get_onreadystatechange(), HTMLElement2_get_onresize(), HTMLElement2_get_onrowsdelete(), HTMLElement2_get_onrowsinserted(), HTMLElement2_get_onscroll(), HTMLElement2_get_readyState(), HTMLElement2_get_readyStateValue(), HTMLElement2_get_runtimeStyle(), HTMLElement2_get_scopeName(), HTMLElement2_get_scrollHeight(), HTMLElement2_get_scrollLeft(), HTMLElement2_get_scrollTop(), HTMLElement2_get_scrollWidth(), HTMLElement2_get_tabIndex(), HTMLElement2_get_tagUrn(), HTMLElement2_getAdjacentText(), HTMLElement2_getBoundingClientRect(), HTMLElement2_getClientRects(), HTMLElement2_getElementsByTagName(), HTMLElement2_getExpression(), HTMLElement2_GetIDsOfNames(), HTMLElement2_GetTypeInfo(), HTMLElement2_GetTypeInfoCount(), HTMLElement2_insertAdjacentElement(), HTMLElement2_Invoke(), HTMLElement2_mergeAttributes(), HTMLElement2_put_accessKey(), HTMLElement2_put_dir(), HTMLElement2_put_onbeforecopy(), HTMLElement2_put_onbeforecut(), HTMLElement2_put_onbeforeeditfocus(), HTMLElement2_put_onbeforepaste(), HTMLElement2_put_onblur(), HTMLElement2_put_oncellchange(), HTMLElement2_put_oncontextmenu(), HTMLElement2_put_oncopy(), HTMLElement2_put_oncut(), HTMLElement2_put_ondrag(), HTMLElement2_put_ondragend(), HTMLElement2_put_ondragenter(), HTMLElement2_put_ondragleave(), HTMLElement2_put_ondragover(), HTMLElement2_put_ondrop(), HTMLElement2_put_onfocus(), HTMLElement2_put_onlosecapture(), HTMLElement2_put_onpaste(), HTMLElement2_put_onpropertychange(), HTMLElement2_put_onreadystatechange(), HTMLElement2_put_onresize(), HTMLElement2_put_onrowsdelete(), HTMLElement2_put_onrowsinserted(), HTMLElement2_put_onscroll(), HTMLElement2_put_scrollLeft(), HTMLElement2_put_scrollTop(), HTMLElement2_put_tabIndex(), HTMLElement2_put_tagUrn(), HTMLElement2_QueryInterface(), HTMLElement2_Release(), HTMLElement2_releaseCapture(), HTMLElement2_removeBehavior(), HTMLElement2_removeExpression(), HTMLElement2_removeFilter(), HTMLElement2_replaceAdjacentText(), HTMLElement2_setCapture(), and HTMLElement2_setExpression().

◆ impl_from_IHTMLElement3()

static HTMLElement * impl_from_IHTMLElement3 ( IHTMLElement3 *  iface)
inlinestatic

Definition at line 3085 of file htmlelem.c.

3086{
3087 return CONTAINING_RECORD(iface, HTMLElement, IHTMLElement3_iface);
3088}

Referenced by HTMLElement3_AddRef(), HTMLElement3_dragDrop(), HTMLElement3_fireEvent(), HTMLElement3_get_canHaveHTML(), HTMLElement3_get_contentEditable(), HTMLElement3_get_disabled(), HTMLElement3_get_glyphMode(), HTMLElement3_get_hideFocus(), HTMLElement3_get_inflateBlock(), HTMLElement3_get_isContentEditable(), HTMLElement3_get_isDisabled(), HTMLElement3_get_isMultiLine(), HTMLElement3_get_onactivate(), HTMLElement3_get_onbeforedeactivate(), HTMLElement3_get_oncontrolselect(), HTMLElement3_get_ondeactivate(), HTMLElement3_get_onlayoutcomplete(), HTMLElement3_get_onmousecenter(), HTMLElement3_get_onmouseleave(), HTMLElement3_get_onmove(), HTMLElement3_get_onmoveend(), HTMLElement3_get_onmovestart(), HTMLElement3_get_onpage(), HTMLElement3_get_onresizeend(), HTMLElement3_get_onresizestart(), HTMLElement3_GetIDsOfNames(), HTMLElement3_GetTypeInfo(), HTMLElement3_GetTypeInfoCount(), HTMLElement3_Invoke(), HTMLElement3_mergeAttributes(), HTMLElement3_put_contentEditable(), HTMLElement3_put_disabled(), HTMLElement3_put_hideFocus(), HTMLElement3_put_inflateBlock(), HTMLElement3_put_onactivate(), HTMLElement3_put_onbeforedeactivate(), HTMLElement3_put_oncontrolselect(), HTMLElement3_put_ondeactivate(), HTMLElement3_put_onlayoutcomplete(), HTMLElement3_put_onmousecenter(), HTMLElement3_put_onmouseleave(), HTMLElement3_put_onmove(), HTMLElement3_put_onmoveend(), HTMLElement3_put_onmovestart(), HTMLElement3_put_onpage(), HTMLElement3_put_onresizeend(), HTMLElement3_put_onresizestart(), HTMLElement3_QueryInterface(), HTMLElement3_Release(), and HTMLElement3_setActive().

◆ impl_from_IHTMLElement4()

◆ impl_from_IHTMLFiltersCollection()

◆ impl_from_IHTMLRect()

◆ insert_adjacent_node()

static HRESULT insert_adjacent_node ( HTMLElement This,
const WCHAR where,
nsIDOMNode nsnode,
HTMLDOMNode **  ret_node 
)
static

Definition at line 1496 of file htmlelem.c.

1497{
1498 nsIDOMNode *ret_nsnode;
1499 nsresult nsres;
1500 HRESULT hres = S_OK;
1501
1502 static const WCHAR beforebeginW[] = {'b','e','f','o','r','e','b','e','g','i','n',0};
1503 static const WCHAR afterbeginW[] = {'a','f','t','e','r','b','e','g','i','n',0};
1504 static const WCHAR beforeendW[] = {'b','e','f','o','r','e','e','n','d',0};
1505 static const WCHAR afterendW[] = {'a','f','t','e','r','e','n','d',0};
1506
1507 if (!strcmpiW(where, beforebeginW)) {
1509
1510 nsres = nsIDOMNode_GetParentNode(This->node.nsnode, &parent);
1511 if(NS_FAILED(nsres))
1512 return E_FAIL;
1513
1514 if(!parent)
1515 return E_INVALIDARG;
1516
1517 nsres = nsIDOMNode_InsertBefore(parent, nsnode, This->node.nsnode, &ret_nsnode);
1518 nsIDOMNode_Release(parent);
1519 }else if(!strcmpiW(where, afterbeginW)) {
1520 nsIDOMNode *first_child;
1521
1522 nsres = nsIDOMNode_GetFirstChild(This->node.nsnode, &first_child);
1523 if(NS_FAILED(nsres))
1524 return E_FAIL;
1525
1526 nsres = nsIDOMNode_InsertBefore(This->node.nsnode, nsnode, first_child, &ret_nsnode);
1527 if(NS_FAILED(nsres))
1528 return E_FAIL;
1529
1530 if (first_child)
1531 nsIDOMNode_Release(first_child);
1532 }else if (!strcmpiW(where, beforeendW)) {
1533 nsres = nsIDOMNode_AppendChild(This->node.nsnode, nsnode, &ret_nsnode);
1534 }else if (!strcmpiW(where, afterendW)) {
1535 nsIDOMNode *next_sibling, *parent;
1536
1537 nsres = nsIDOMNode_GetParentNode(This->node.nsnode, &parent);
1538 if(NS_FAILED(nsres))
1539 return E_FAIL;
1540 if(!parent)
1541 return E_INVALIDARG;
1542
1543 nsres = nsIDOMNode_GetNextSibling(This->node.nsnode, &next_sibling);
1544 if(NS_SUCCEEDED(nsres)) {
1545 if(next_sibling) {
1546 nsres = nsIDOMNode_InsertBefore(parent, nsnode, next_sibling, &ret_nsnode);
1547 nsIDOMNode_Release(next_sibling);
1548 }else {
1549 nsres = nsIDOMNode_AppendChild(parent, nsnode, &ret_nsnode);
1550 }
1551 }
1552
1553 nsIDOMNode_Release(parent);
1554 }else {
1555 ERR("invalid where: %s\n", debugstr_w(where));
1556 return E_INVALIDARG;
1557 }
1558
1559 if (NS_FAILED(nsres))
1560 return E_FAIL;
1561
1562 if(ret_node)
1563 hres = get_node(This->node.doc, ret_nsnode, TRUE, ret_node);
1564 nsIDOMNode_Release(ret_nsnode);
1565 return hres;
1566}
r parent
Definition: btrfs.c:3010
#define strcmpiW(s1, s2)
Definition: unicode.h:39

Referenced by HTMLElement2_insertAdjacentElement(), HTMLElement_insertAdjacentHTML(), and HTMLElement_insertAdjacentText().

◆ replace_node_by_html()

HRESULT replace_node_by_html ( nsIDOMHTMLDocument nsdoc,
nsIDOMNode nsnode,
const WCHAR html 
)

Definition at line 98 of file htmlelem.c.

99{
100 nsIDOMDocumentFragment *nsfragment;
101 nsIDOMNode *nsparent;
104 nsresult nsres;
105 HRESULT hres = S_OK;
106
107 nsres = nsIDOMHTMLDocument_CreateRange(nsdoc, &range);
108 if(NS_FAILED(nsres)) {
109 ERR("CreateRange failed: %08x\n", nsres);
110 return E_FAIL;
111 }
112
114 nsIDOMRange_CreateContextualFragment(range, &html_str, &nsfragment);
115 nsIDOMRange_Release(range);
117 if(NS_FAILED(nsres)) {
118 ERR("CreateContextualFragment failed: %08x\n", nsres);
119 return E_FAIL;
120 }
121
122 nsres = nsIDOMNode_GetParentNode(nsnode, &nsparent);
123 if(NS_SUCCEEDED(nsres) && nsparent) {
124 nsIDOMNode *nstmp;
125
126 nsres = nsIDOMNode_ReplaceChild(nsparent, (nsIDOMNode*)nsfragment, nsnode, &nstmp);
127 nsIDOMNode_Release(nsparent);
128 if(NS_FAILED(nsres)) {
129 ERR("ReplaceChild failed: %08x\n", nsres);
130 hres = E_FAIL;
131 }else if(nstmp) {
132 nsIDOMNode_Release(nstmp);
133 }
134 }else {
135 ERR("GetParentNode failed: %08x\n", nsres);
136 hres = E_FAIL;
137 }
138
139 nsIDOMDocumentFragment_Release(nsfragment);
140 return hres;
141}

Referenced by HTMLElement_put_outerHTML(), and run_insert_comment().

◆ unsafe_impl_from_IHTMLElement()

HTMLElement * unsafe_impl_from_IHTMLElement ( IHTMLElement *  iface)

Definition at line 1962 of file htmlelem.c.

1963{
1964 return iface->lpVtbl == &HTMLElementVtbl ? impl_from_IHTMLElement(iface) : NULL;
1965}

Referenced by HTMLElement2_insertAdjacentElement(), HTMLElement_contains(), HTMLSelectElement_add(), and HTMLTxtRange_moveToElementText().

Variable Documentation

◆ areaW

const WCHAR areaW[] = {'A','R','E','A',0}
static

Definition at line 22 of file htmlelem.c.

◆ aW

◆ bodyW

const WCHAR bodyW[] = {'B','O','D','Y',0}
static

Definition at line 23 of file htmlelem.c.

Referenced by test_createProcessingInstruction().

◆ buttonW

const WCHAR buttonW[] = {'B','U','T','T','O','N',0}
static

◆ disabledW

const WCHAR disabledW[] = {'d','i','s','a','b','l','e','d',0}
static

◆ embedW

const WCHAR embedW[] = {'E','M','B','E','D',0}
static

Definition at line 25 of file htmlelem.c.

◆ formW

const WCHAR formW[] = {'F','O','R','M',0}
static

Definition at line 26 of file htmlelem.c.

◆ frameW

const WCHAR frameW[] = {'F','R','A','M','E',0}
static

Definition at line 27 of file htmlelem.c.

◆ headW

const WCHAR headW[] = {'H','E','A','D',0}
static

Definition at line 28 of file htmlelem.c.

Referenced by request_receive(), set_content_length(), and test_head_request().

◆ HTMLAttributeCollection2Vtbl

const IHTMLAttributeCollection2Vtbl HTMLAttributeCollection2Vtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLAttributeCollection2_setNamedItem(IHTMLAttributeCollection2 *iface, IHTMLDOMAttribute *ppNode, IHTMLDOMAttribute **newretNode)
Definition: htmlelem.c:4596
static HRESULT WINAPI HTMLAttributeCollection2_GetTypeInfoCount(IHTMLAttributeCollection2 *iface, UINT *pctinfo)
Definition: htmlelem.c:4540
static HRESULT WINAPI HTMLAttributeCollection2_GetIDsOfNames(IHTMLAttributeCollection2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlelem.c:4553
static HRESULT WINAPI HTMLAttributeCollection2_QueryInterface(IHTMLAttributeCollection2 *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:4522
static HRESULT WINAPI HTMLAttributeCollection2_Invoke(IHTMLAttributeCollection2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlelem.c:4561
static ULONG WINAPI HTMLAttributeCollection2_Release(IHTMLAttributeCollection2 *iface)
Definition: htmlelem.c:4534
static HRESULT WINAPI HTMLAttributeCollection2_GetTypeInfo(IHTMLAttributeCollection2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlelem.c:4546
static ULONG WINAPI HTMLAttributeCollection2_AddRef(IHTMLAttributeCollection2 *iface)
Definition: htmlelem.c:4528
static HRESULT WINAPI HTMLAttributeCollection2_getNamedItem(IHTMLAttributeCollection2 *iface, BSTR bstrName, IHTMLDOMAttribute **newretNode)
Definition: htmlelem.c:4570
static HRESULT WINAPI HTMLAttributeCollection2_removeNamedItem(IHTMLAttributeCollection2 *iface, BSTR bstrName, IHTMLDOMAttribute **newretNode)
Definition: htmlelem.c:4604

Definition at line 4612 of file htmlelem.c.

Referenced by HTMLElement_get_attr_col().

◆ HTMLAttributeCollection3Vtbl

const IHTMLAttributeCollection3Vtbl HTMLAttributeCollection3Vtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLAttributeCollection3_AddRef(IHTMLAttributeCollection3 *iface)
Definition: htmlelem.c:4636
static HRESULT WINAPI HTMLAttributeCollection3_QueryInterface(IHTMLAttributeCollection3 *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:4630
static HRESULT WINAPI HTMLAttributeCollection3_Invoke(IHTMLAttributeCollection3 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlelem.c:4669
static HRESULT WINAPI HTMLAttributeCollection3_get_length(IHTMLAttributeCollection3 *iface, LONG *p)
Definition: htmlelem.c:4724
static HRESULT WINAPI HTMLAttributeCollection3_setNamedItem(IHTMLAttributeCollection3 *iface, IHTMLDOMAttribute *pNodeIn, IHTMLDOMAttribute **ppNodeOut)
Definition: htmlelem.c:4685
static HRESULT WINAPI HTMLAttributeCollection3_GetTypeInfoCount(IHTMLAttributeCollection3 *iface, UINT *pctinfo)
Definition: htmlelem.c:4648
static HRESULT WINAPI HTMLAttributeCollection3_GetIDsOfNames(IHTMLAttributeCollection3 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlelem.c:4661
static HRESULT WINAPI HTMLAttributeCollection3_GetTypeInfo(IHTMLAttributeCollection3 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlelem.c:4654
static HRESULT WINAPI HTMLAttributeCollection3_getNamedItem(IHTMLAttributeCollection3 *iface, BSTR bstrName, IHTMLDOMAttribute **ppNodeOut)
Definition: htmlelem.c:4678
static ULONG WINAPI HTMLAttributeCollection3_Release(IHTMLAttributeCollection3 *iface)
Definition: htmlelem.c:4642
static HRESULT WINAPI HTMLAttributeCollection3_removeNamedItem(IHTMLAttributeCollection3 *iface, BSTR bstrName, IHTMLDOMAttribute **ppNodeOut)
Definition: htmlelem.c:4693
static HRESULT WINAPI HTMLAttributeCollection3_item(IHTMLAttributeCollection3 *iface, LONG index, IHTMLDOMAttribute **ppNodeOut)
Definition: htmlelem.c:4701

Definition at line 4730 of file htmlelem.c.

Referenced by HTMLElement_get_attr_col().

◆ HTMLAttributeCollection_dispex

dispex_static_data_t HTMLAttributeCollection_dispex
static
Initial value:
= {
DispHTMLAttributeCollection_tid,
}
static const dispex_static_data_vtbl_t HTMLAttributeCollection_dispex_vtbl
Definition: htmlelem.c:4806
static const tid_t HTMLAttributeCollection_iface_tids[]
Definition: htmlelem.c:4813

Definition at line 4820 of file htmlelem.c.

Referenced by HTMLElement_get_attr_col().

◆ HTMLAttributeCollection_dispex_vtbl

const dispex_static_data_vtbl_t HTMLAttributeCollection_dispex_vtbl
static
Initial value:
= {
}
static HRESULT HTMLAttributeCollection_invoke(DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
Definition: htmlelem.c:4772
static HRESULT HTMLAttributeCollection_get_dispid(DispatchEx *dispex, BSTR name, DWORD flags, DISPID *dispid)
Definition: htmlelem.c:4750

Definition at line 4806 of file htmlelem.c.

◆ HTMLAttributeCollection_iface_tids

const tid_t HTMLAttributeCollection_iface_tids[]
static
Initial value:
= {
IHTMLAttributeCollection_tid,
IHTMLAttributeCollection2_tid,
IHTMLAttributeCollection3_tid,
0
}

Definition at line 4813 of file htmlelem.c.

◆ HTMLAttributeCollectionVtbl

const IHTMLAttributeCollectionVtbl HTMLAttributeCollectionVtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLAttributeCollection_AddRef(IHTMLAttributeCollection *iface)
Definition: htmlelem.c:4302
static HRESULT WINAPI HTMLAttributeCollection_QueryInterface(IHTMLAttributeCollection *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:4276
static HRESULT WINAPI HTMLAttributeCollection_GetTypeInfo(IHTMLAttributeCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlelem.c:4340
static HRESULT WINAPI HTMLAttributeCollection_item(IHTMLAttributeCollection *iface, VARIANT *name, IDispatch **ppItem)
Definition: htmlelem.c:4471
static HRESULT WINAPI HTMLAttributeCollection_GetIDsOfNames(IHTMLAttributeCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlelem.c:4347
static HRESULT WINAPI HTMLAttributeCollection__newEnum(IHTMLAttributeCollection *iface, IUnknown **p)
Definition: htmlelem.c:4464
static HRESULT WINAPI HTMLAttributeCollection_GetTypeInfoCount(IHTMLAttributeCollection *iface, UINT *pctinfo)
Definition: htmlelem.c:4334
static HRESULT WINAPI HTMLAttributeCollection_get_length(IHTMLAttributeCollection *iface, LONG *p)
Definition: htmlelem.c:4452
static ULONG WINAPI HTMLAttributeCollection_Release(IHTMLAttributeCollection *iface)
Definition: htmlelem.c:4312
static HRESULT WINAPI HTMLAttributeCollection_Invoke(IHTMLAttributeCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlelem.c:4355

Definition at line 4504 of file htmlelem.c.

Referenced by HTMLElement_get_attr_col().

◆ HTMLElement2Vtbl

const IHTMLElement2Vtbl HTMLElement2Vtbl
static

Definition at line 2977 of file htmlelem.c.

Referenced by HTMLElement_Init().

◆ HTMLElement3Vtbl

const IHTMLElement3Vtbl HTMLElement3Vtbl
static

Definition at line 3501 of file htmlelem.c.

Referenced by HTMLElement_Init().

◆ HTMLElement4Vtbl

const IHTMLElement4Vtbl HTMLElement4Vtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLElement4_put_onbeforeactivate(IHTMLElement4 *iface, VARIANT v)
Definition: htmlelem.c:3665
static HRESULT WINAPI HTMLElement4_QueryInterface(IHTMLElement4 *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3559
static HRESULT WINAPI HTMLElement4_put_onmousewheel(IHTMLElement4 *iface, VARIANT v)
Definition: htmlelem.c:3607
static HRESULT WINAPI HTMLElement4_GetTypeInfoCount(IHTMLElement4 *iface, UINT *pctinfo)
Definition: htmlelem.c:3578
static HRESULT WINAPI HTMLElement4_put_onfocusin(IHTMLElement4 *iface, VARIANT v)
Definition: htmlelem.c:3679
static ULONG WINAPI HTMLElement4_Release(IHTMLElement4 *iface)
Definition: htmlelem.c:3572
static HRESULT WINAPI HTMLElement4_get_onbeforeactivate(IHTMLElement4 *iface, VARIANT *p)
Definition: htmlelem.c:3672
static HRESULT WINAPI HTMLElement4_get_onmousewheel(IHTMLElement4 *iface, VARIANT *p)
Definition: htmlelem.c:3616
static HRESULT WINAPI HTMLElement4_setAttributeNode(IHTMLElement4 *iface, IHTMLDOMAttribute *pattr, IHTMLDOMAttribute **ppretAttribute)
Definition: htmlelem.c:3649
static ULONG WINAPI HTMLElement4_AddRef(IHTMLElement4 *iface)
Definition: htmlelem.c:3566
static HRESULT WINAPI HTMLElement4_put_onfocusout(IHTMLElement4 *iface, VARIANT v)
Definition: htmlelem.c:3697
static HRESULT WINAPI HTMLElement4_removeAttributeNode(IHTMLElement4 *iface, IHTMLDOMAttribute *pattr, IHTMLDOMAttribute **ppretAttribute)
Definition: htmlelem.c:3657
static HRESULT WINAPI HTMLElement4_get_onfocusin(IHTMLElement4 *iface, VARIANT *p)
Definition: htmlelem.c:3688
static HRESULT WINAPI HTMLElement4_get_onfocusout(IHTMLElement4 *iface, VARIANT *p)
Definition: htmlelem.c:3704
static HRESULT WINAPI HTMLElement4_normalize(IHTMLElement4 *iface)
Definition: htmlelem.c:3625
static HRESULT WINAPI HTMLElement4_GetTypeInfo(IHTMLElement4 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlelem.c:3584
static HRESULT WINAPI HTMLElement4_GetIDsOfNames(IHTMLElement4 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlelem.c:3591
static HRESULT WINAPI HTMLElement4_Invoke(IHTMLElement4 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlelem.c:3599
static HRESULT WINAPI HTMLElement4_getAttributeNode(IHTMLElement4 *iface, BSTR bstrname, IHTMLDOMAttribute **ppAttribute)
Definition: htmlelem.c:3632

Definition at line 3711 of file htmlelem.c.

Referenced by HTMLElement_Init().

◆ HTMLElement_cpc

const cpc_entry_t HTMLElement_cpc
Initial value:
= {
{NULL}
}
#define HTMLELEMENT_CPC

Definition at line 3847 of file htmlelem.c.

◆ HTMLElement_dispex

dispex_static_data_t HTMLElement_dispex
static
Initial value:
= {
DispHTMLUnknownElement_tid,
}
static const tid_t HTMLElement_iface_tids[]
Definition: htmlelem.c:3987

Definition at line 4001 of file htmlelem.c.

Referenced by HTMLElement_Create(), and HTMLElement_Init().

◆ HTMLElement_dispex_vtbl

dispex_static_data_vtbl_t HTMLElement_dispex_vtbl
static
Initial value:
= {
}
static HRESULT HTMLElement_invoke(DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
Definition: htmlelem.c:3877
static event_target_t ** HTMLElement_get_event_target_ptr(DispatchEx *dispex)
Definition: htmlelem.c:3973
static void HTMLElement_bind_event(DispatchEx *dispex, int eid)
Definition: htmlelem.c:3981
static HRESULT HTMLElement_populate_props(DispatchEx *dispex)
Definition: htmlelem.c:3891
static HRESULT HTMLElement_get_dispid(DispatchEx *dispex, BSTR name, DWORD grfdex, DISPID *pid)
Definition: htmlelem.c:3866

Definition at line 3992 of file htmlelem.c.

Referenced by HTMLElement_Init().

◆ HTMLElement_iface_tids

const tid_t HTMLElement_iface_tids[]
static
Initial value:
= {
0
}
#define HTMLELEMENT_TIDS

Definition at line 3987 of file htmlelem.c.

◆ HTMLElementEvents2_data

cp_static_data_t HTMLElementEvents2_data = { HTMLElementEvents2_tid, NULL , TRUE }

Definition at line 3845 of file htmlelem.c.

◆ HTMLElementImplVtbl

const NodeImplVtbl HTMLElementImplVtbl
static
Initial value:
= {
}
HRESULT HTMLElement_clone(HTMLDOMNode *iface, nsIDOMNode *nsnode, HTMLDOMNode **ret)
Definition: htmlelem.c:3793
void HTMLElement_destructor(HTMLDOMNode *iface)
Definition: htmlelem.c:3764
HRESULT HTMLElement_handle_event(HTMLDOMNode *iface, DWORD eid, nsIDOMEvent *event, BOOL *prevent_default)
Definition: htmlelem.c:3815
const cpc_entry_t HTMLElement_cpc[]
Definition: htmlelem.c:3847
HRESULT HTMLElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:3738

Definition at line 3852 of file htmlelem.c.

Referenced by HTMLElement_Create().

◆ HTMLElementVtbl

const IHTMLElementVtbl HTMLElementVtbl
static

Definition at line 1865 of file htmlelem.c.

Referenced by HTMLElement_Init(), and unsafe_impl_from_IHTMLElement().

◆ HTMLFiltersCollection_dispex

dispex_static_data_t HTMLFiltersCollection_dispex
static
Initial value:
= {
IHTMLFiltersCollection_tid,
}
static const tid_t HTMLFiltersCollection_iface_tids[]
Definition: htmlelem.c:4246
static const dispex_static_data_vtbl_t HTMLFiltersCollection_dispex_vtbl
Definition: htmlelem.c:4239

Definition at line 4250 of file htmlelem.c.

Referenced by HTMLFiltersCollection_Create().

◆ HTMLFiltersCollection_dispex_vtbl

const dispex_static_data_vtbl_t HTMLFiltersCollection_dispex_vtbl
static
Initial value:
= {
}
static HRESULT HTMLFiltersCollection_invoke(DispatchEx *dispex, DISPID id, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *res, EXCEPINFO *ei, IServiceProvider *caller)
Definition: htmlelem.c:4226
static HRESULT HTMLFiltersCollection_get_dispid(DispatchEx *dispex, BSTR name, DWORD flags, DISPID *dispid)
Definition: htmlelem.c:4211

Definition at line 4239 of file htmlelem.c.

◆ HTMLFiltersCollection_iface_tids

const tid_t HTMLFiltersCollection_iface_tids[]
static
Initial value:
= {
IHTMLFiltersCollection_tid,
0
}

Definition at line 4246 of file htmlelem.c.

◆ HTMLFiltersCollectionVtbl

const IHTMLFiltersCollectionVtbl HTMLFiltersCollectionVtbl
static
Initial value:
= {
}
static HRESULT WINAPI HTMLFiltersCollection_GetTypeInfoCount(IHTMLFiltersCollection *iface, UINT *pctinfo)
Definition: htmlelem.c:4140
static ULONG WINAPI HTMLFiltersCollection_Release(IHTMLFiltersCollection *iface)
Definition: htmlelem.c:4125
static HRESULT WINAPI HTMLFiltersCollection_GetTypeInfo(IHTMLFiltersCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlelem.c:4146
static HRESULT WINAPI HTMLFiltersCollection_get_length(IHTMLFiltersCollection *iface, LONG *p)
Definition: htmlelem.c:4171
static HRESULT WINAPI HTMLFiltersCollection_item(IHTMLFiltersCollection *iface, VARIANT *pvarIndex, VARIANT *pvarResult)
Definition: htmlelem.c:4191
static HRESULT WINAPI HTMLFiltersCollection_Invoke(IHTMLFiltersCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlelem.c:4162
static HRESULT WINAPI HTMLFiltersCollection_QueryInterface(IHTMLFiltersCollection *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:4092
static HRESULT WINAPI HTMLFiltersCollection_get__newEnum(IHTMLFiltersCollection *iface, IUnknown **p)
Definition: htmlelem.c:4184
static ULONG WINAPI HTMLFiltersCollection_AddRef(IHTMLFiltersCollection *iface)
Definition: htmlelem.c:4115
static HRESULT WINAPI HTMLFiltersCollection_GetIDsOfNames(IHTMLFiltersCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlelem.c:4153

Definition at line 4198 of file htmlelem.c.

Referenced by HTMLFiltersCollection_Create().

◆ HTMLRect_dispex

dispex_static_data_t HTMLRect_dispex
static
Initial value:
= {
IHTMLRect_tid,
}
static const tid_t HTMLRect_iface_tids[]
Definition: htmlelem.c:507

Definition at line 511 of file htmlelem.c.

Referenced by create_html_rect().

◆ HTMLRect_iface_tids

const tid_t HTMLRect_iface_tids[]
static
Initial value:
= {
IHTMLRect_tid,
0
}

Definition at line 507 of file htmlelem.c.

◆ HTMLRectVtbl

const IHTMLRectVtbl HTMLRectVtbl
static
Initial value:
= {
}
static ULONG WINAPI HTMLRect_AddRef(IHTMLRect *iface)
Definition: htmlelem.c:329
static HRESULT WINAPI HTMLRect_GetTypeInfoCount(IHTMLRect *iface, UINT *pctinfo)
Definition: htmlelem.c:355
static HRESULT WINAPI HTMLRect_Invoke(IHTMLRect *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: htmlelem.c:379
static HRESULT WINAPI HTMLRect_QueryInterface(IHTMLRect *iface, REFIID riid, void **ppv)
Definition: htmlelem.c:307
static HRESULT WINAPI HTMLRect_get_top(IHTMLRect *iface, LONG *p)
Definition: htmlelem.c:421
static HRESULT WINAPI HTMLRect_put_bottom(IHTMLRect *iface, LONG v)
Definition: htmlelem.c:464
static HRESULT WINAPI HTMLRect_get_left(IHTMLRect *iface, LONG *p)
Definition: htmlelem.c:396
static HRESULT WINAPI HTMLRect_GetIDsOfNames(IHTMLRect *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: htmlelem.c:370
static HRESULT WINAPI HTMLRect_put_right(IHTMLRect *iface, LONG v)
Definition: htmlelem.c:439
static HRESULT WINAPI HTMLRect_get_bottom(IHTMLRect *iface, LONG *p)
Definition: htmlelem.c:471
static ULONG WINAPI HTMLRect_Release(IHTMLRect *iface)
Definition: htmlelem.c:339
static HRESULT WINAPI HTMLRect_put_top(IHTMLRect *iface, LONG v)
Definition: htmlelem.c:414
static HRESULT WINAPI HTMLRect_get_right(IHTMLRect *iface, LONG *p)
Definition: htmlelem.c:446
static HRESULT WINAPI HTMLRect_GetTypeInfo(IHTMLRect *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: htmlelem.c:362
static HRESULT WINAPI HTMLRect_put_left(IHTMLRect *iface, LONG v)
Definition: htmlelem.c:389

Definition at line 489 of file htmlelem.c.

Referenced by create_html_rect().

◆ iframeW

const WCHAR iframeW[] = {'I','F','R','A','M','E',0}
static

Definition at line 29 of file htmlelem.c.

◆ imgW

const WCHAR imgW[] = {'I','M','G',0}
static

Definition at line 30 of file htmlelem.c.

Referenced by HTMLImageElementFactory_create().

◆ inputW

const WCHAR inputW[] = {'I','N','P','U','T',0}
static

Definition at line 31 of file htmlelem.c.

Referenced by create_match_array(), match_smart_tee_pin(), and regexp_string_match().

◆ labelW

const WCHAR labelW[] = {'L','A','B','E','L',0}
static

Definition at line 32 of file htmlelem.c.

◆ languageW

const WCHAR languageW[] = {'l','a','n','g','u','a','g','e',0}
static

◆ linkW

const WCHAR linkW[] = {'L','I','N','K',0}
static

Definition at line 33 of file htmlelem.c.

◆ metaW

const WCHAR metaW[] = {'M','E','T','A',0}
static

Definition at line 34 of file htmlelem.c.

◆ objectW

const WCHAR objectW[] = {'O','B','J','E','C','T',0}
static

Definition at line 35 of file htmlelem.c.

◆ optionW

const WCHAR optionW[] = {'O','P','T','I','O','N',0}
static

◆ scriptW

const WCHAR scriptW[] = {'S','C','R','I','P','T',0}
static

Definition at line 37 of file htmlelem.c.

◆ selectW

const WCHAR selectW[] = {'S','E','L','E','C','T',0}
static

◆ styleW

const WCHAR styleW[] = {'S','T','Y','L','E',0}
static

Definition at line 39 of file htmlelem.c.

Referenced by HTMLDocument_createStyleSheet().

◆ tableW

const WCHAR tableW[] = {'T','A','B','L','E',0}
static

Definition at line 40 of file htmlelem.c.

◆ tag_descs

const tag_desc_t tag_descs[]
static
Initial value:
= {
}
HRESULT HTMLAnchorElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlanchor.c:798
HRESULT HTMLAreaElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlarea.c:443
HRESULT HTMLBodyElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlbody.c:869
static const WCHAR linkW[]
Definition: htmlelem.c:33
static const WCHAR selectW[]
Definition: htmlelem.c:38
static const WCHAR embedW[]
Definition: htmlelem.c:25
static const WCHAR optionW[]
Definition: htmlelem.c:36
static const WCHAR formW[]
Definition: htmlelem.c:26
static const WCHAR metaW[]
Definition: htmlelem.c:34
static const WCHAR trW[]
Definition: htmlelem.c:44
static const WCHAR buttonW[]
Definition: htmlelem.c:24
static const WCHAR scriptW[]
Definition: htmlelem.c:37
static const WCHAR tableW[]
Definition: htmlelem.c:40
static const WCHAR frameW[]
Definition: htmlelem.c:27
static const WCHAR imgW[]
Definition: htmlelem.c:30
static const WCHAR textareaW[]
Definition: htmlelem.c:42
static const WCHAR iframeW[]
Definition: htmlelem.c:29
static const WCHAR inputW[]
Definition: htmlelem.c:31
static const WCHAR headW[]
Definition: htmlelem.c:28
static const WCHAR aW[]
Definition: htmlelem.c:21
static const WCHAR areaW[]
Definition: htmlelem.c:22
static const WCHAR tdW[]
Definition: htmlelem.c:41
static const WCHAR title_tagW[]
Definition: htmlelem.c:43
static const WCHAR objectW[]
Definition: htmlelem.c:35
static const WCHAR bodyW[]
Definition: htmlelem.c:23
static const WCHAR styleW[]
Definition: htmlelem.c:39
static const WCHAR labelW[]
Definition: htmlelem.c:32
HRESULT HTMLEmbedElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlembed.c:260
HRESULT HTMLFormElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlform.c:785
HRESULT HTMLFrameElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlframe.c:311
HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlhead.c:163
HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlhead.c:323
HRESULT HTMLIFrame_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmliframe.c:586
HRESULT HTMLImgElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlimg.c:726
HRESULT HTMLButtonElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlinput.c:1843
HRESULT HTMLLabelElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlinput.c:1526
HRESULT HTMLInputElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlinput.c:1332
HRESULT HTMLMetaElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlmeta.c:244
HRESULT HTMLObjectElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlobject.c:764
HRESULT HTMLOptionElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmloption.c:437
HRESULT HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlscript.c:458
HRESULT HTMLSelectElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmlselect.c:709
HRESULT HTMLStyleElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
HRESULT HTMLTable_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmltable.c:1065
HRESULT HTMLTableCell_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
HRESULT HTMLTableRow_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmltablerow.c:444
HRESULT HTMLTextAreaElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
Definition: htmltextarea.c:498

Definition at line 51 of file htmlelem.c.

Referenced by get_tag_desc().

◆ tdW

const WCHAR tdW[] = {'T','D',0}
static

Definition at line 41 of file htmlelem.c.

◆ textareaW

const WCHAR textareaW[] = {'T','E','X','T','A','R','E','A',0}
static

Definition at line 42 of file htmlelem.c.

Referenced by HTMLTextAreaElement_get_type().

◆ title_tagW

const WCHAR title_tagW[] = {'T','I','T','L','E',0}
static

Definition at line 43 of file htmlelem.c.

◆ titleW

◆ trW

const WCHAR trW[] = {'T','R',0}
static

Definition at line 44 of file htmlelem.c.