2011-06-21 13:47:09 +02:00
|
|
|
/*
|
2018-02-27 14:58:04 +01:00
|
|
|
* Copyright 2011,2012 Jacek Caban for CodeWeavers
|
2011-06-21 13:47:09 +02:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#define COBJMACROS
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "ole2.h"
|
2016-03-31 14:51:08 +02:00
|
|
|
#include "mshtmdid.h"
|
2011-06-21 13:47:09 +02:00
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
#include "mshtml_private.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
|
|
|
|
|
2017-04-20 16:08:28 +02:00
|
|
|
struct HTMLTitleElement {
|
2011-06-21 13:48:00 +02:00
|
|
|
HTMLElement element;
|
|
|
|
|
|
|
|
IHTMLTitleElement IHTMLTitleElement_iface;
|
2017-04-20 16:08:28 +02:00
|
|
|
};
|
2011-06-21 13:48:00 +02:00
|
|
|
|
|
|
|
static inline HTMLTitleElement *impl_from_IHTMLTitleElement(IHTMLTitleElement *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLTitleElement, IHTMLTitleElement_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLTitleElement_QueryInterface(IHTMLTitleElement *iface,
|
|
|
|
REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLTitleElement_AddRef(IHTMLTitleElement *iface)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLTitleElement_Release(IHTMLTitleElement *iface)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLTitleElement_GetTypeInfoCount(IHTMLTitleElement *iface, UINT *pctinfo)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
|
2015-05-14 13:24:19 +02:00
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
|
2011-06-21 13:48:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLTitleElement_GetTypeInfo(IHTMLTitleElement *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
|
2015-05-14 13:24:19 +02:00
|
|
|
return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
|
2011-06-21 13:48:00 +02:00
|
|
|
ppTInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLTitleElement_GetIDsOfNames(IHTMLTitleElement *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
|
2015-05-14 13:24:19 +02:00
|
|
|
return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
|
2011-06-21 13:48:00 +02:00
|
|
|
cNames, lcid, rgDispId);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLTitleElement_Invoke(IHTMLTitleElement *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
|
2015-05-14 13:24:19 +02:00
|
|
|
return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
|
2011-06-21 13:48:00 +02:00
|
|
|
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLTitleElement_put_text(IHTMLTitleElement *iface, BSTR v)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLTitleElement_get_text(IHTMLTitleElement *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = impl_from_IHTMLTitleElement(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLTitleElementVtbl HTMLTitleElementVtbl = {
|
|
|
|
HTMLTitleElement_QueryInterface,
|
|
|
|
HTMLTitleElement_AddRef,
|
|
|
|
HTMLTitleElement_Release,
|
|
|
|
HTMLTitleElement_GetTypeInfoCount,
|
|
|
|
HTMLTitleElement_GetTypeInfo,
|
|
|
|
HTMLTitleElement_GetIDsOfNames,
|
|
|
|
HTMLTitleElement_Invoke,
|
|
|
|
HTMLTitleElement_put_text,
|
|
|
|
HTMLTitleElement_get_text
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline HTMLTitleElement *HTMLTitleElement_from_HTMLDOMNode(HTMLDOMNode *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLTitleElement, element.node);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT HTMLTitleElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = HTMLTitleElement_from_HTMLDOMNode(iface);
|
|
|
|
|
2014-09-02 11:45:36 +02:00
|
|
|
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
|
|
|
|
|
|
|
if(IsEqualGUID(&IID_IHTMLTitleElement, riid))
|
2011-06-21 13:48:00 +02:00
|
|
|
*ppv = &This->IHTMLTitleElement_iface;
|
2014-09-02 11:45:36 +02:00
|
|
|
else
|
2011-06-21 13:48:00 +02:00
|
|
|
return HTMLElement_QI(&This->element.node, riid, ppv);
|
|
|
|
|
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void HTMLTitleElement_destructor(HTMLDOMNode *iface)
|
|
|
|
{
|
|
|
|
HTMLTitleElement *This = HTMLTitleElement_from_HTMLDOMNode(iface);
|
|
|
|
|
|
|
|
HTMLElement_destructor(&This->element.node);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const NodeImplVtbl HTMLTitleElementImplVtbl = {
|
2017-04-21 13:50:49 +02:00
|
|
|
&CLSID_HTMLTitleElement,
|
2011-06-21 13:48:00 +02:00
|
|
|
HTMLTitleElement_QI,
|
|
|
|
HTMLTitleElement_destructor,
|
2013-03-15 15:01:53 +01:00
|
|
|
HTMLElement_cpc,
|
2011-06-21 13:48:00 +02:00
|
|
|
HTMLElement_clone,
|
2012-09-04 13:58:58 +02:00
|
|
|
HTMLElement_handle_event,
|
2011-08-25 15:23:35 +02:00
|
|
|
HTMLElement_get_attr_col
|
2011-06-21 13:48:00 +02:00
|
|
|
};
|
|
|
|
|
2011-06-21 13:48:12 +02:00
|
|
|
static const tid_t HTMLTitleElement_iface_tids[] = {
|
|
|
|
HTMLELEMENT_TIDS,
|
|
|
|
IHTMLTitleElement_tid,
|
|
|
|
0
|
|
|
|
};
|
|
|
|
static dispex_static_data_t HTMLTitleElement_dispex = {
|
2021-10-06 17:11:31 +02:00
|
|
|
L"HTMLTitleElement",
|
2011-06-21 13:48:12 +02:00
|
|
|
NULL,
|
|
|
|
DispHTMLTitleElement_tid,
|
2016-07-07 12:50:18 +02:00
|
|
|
HTMLTitleElement_iface_tids,
|
|
|
|
HTMLElement_init_dispex_info
|
2011-06-21 13:48:12 +02:00
|
|
|
};
|
|
|
|
|
2018-02-12 01:29:41 +01:00
|
|
|
HRESULT HTMLTitleElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem)
|
2011-06-21 13:48:00 +02:00
|
|
|
{
|
|
|
|
HTMLTitleElement *ret;
|
|
|
|
|
|
|
|
ret = heap_alloc_zero(sizeof(*ret));
|
|
|
|
if(!ret)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
|
|
|
|
ret->IHTMLTitleElement_iface.lpVtbl = &HTMLTitleElementVtbl;
|
|
|
|
ret->element.node.vtbl = &HTMLTitleElementImplVtbl;
|
|
|
|
|
2011-06-21 13:48:12 +02:00
|
|
|
HTMLElement_Init(&ret->element, doc, nselem, &HTMLTitleElement_dispex);
|
2011-06-21 13:48:00 +02:00
|
|
|
|
2016-03-31 14:51:08 +02:00
|
|
|
*elem = &ret->element;
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2017-04-14 14:36:28 +02:00
|
|
|
struct HTMLHtmlElement {
|
2016-03-31 14:51:08 +02:00
|
|
|
HTMLElement element;
|
|
|
|
|
|
|
|
IHTMLHtmlElement IHTMLHtmlElement_iface;
|
2017-04-14 14:36:28 +02:00
|
|
|
};
|
2016-03-31 14:51:08 +02:00
|
|
|
|
|
|
|
static inline HTMLHtmlElement *impl_from_IHTMLHtmlElement(IHTMLHtmlElement *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLHtmlElement, IHTMLHtmlElement_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHtmlElement_QueryInterface(IHTMLHtmlElement *iface,
|
|
|
|
REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLHtmlElement_AddRef(IHTMLHtmlElement *iface)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLHtmlElement_Release(IHTMLHtmlElement *iface)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHtmlElement_GetTypeInfoCount(IHTMLHtmlElement *iface, UINT *pctinfo)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
|
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHtmlElement_GetTypeInfo(IHTMLHtmlElement *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
|
|
|
|
return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
|
|
|
|
ppTInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHtmlElement_GetIDsOfNames(IHTMLHtmlElement *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames,
|
|
|
|
LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
|
|
|
|
return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
|
|
|
|
cNames, lcid, rgDispId);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHtmlElement_Invoke(IHTMLHtmlElement *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
|
|
|
|
return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
|
|
|
|
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHtmlElement_put_version(IHTMLHtmlElement *iface, BSTR v)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHtmlElement_get_version(IHTMLHtmlElement *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = impl_from_IHTMLHtmlElement(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLHtmlElementVtbl HTMLHtmlElementVtbl = {
|
|
|
|
HTMLHtmlElement_QueryInterface,
|
|
|
|
HTMLHtmlElement_AddRef,
|
|
|
|
HTMLHtmlElement_Release,
|
|
|
|
HTMLHtmlElement_GetTypeInfoCount,
|
|
|
|
HTMLHtmlElement_GetTypeInfo,
|
|
|
|
HTMLHtmlElement_GetIDsOfNames,
|
|
|
|
HTMLHtmlElement_Invoke,
|
|
|
|
HTMLHtmlElement_put_version,
|
|
|
|
HTMLHtmlElement_get_version
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline HTMLHtmlElement *HTMLHtmlElement_from_HTMLDOMNode(HTMLDOMNode *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLHtmlElement, element.node);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT HTMLHtmlElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = HTMLHtmlElement_from_HTMLDOMNode(iface);
|
|
|
|
|
|
|
|
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
|
|
|
|
|
|
|
if(IsEqualGUID(&IID_IHTMLHtmlElement, riid))
|
|
|
|
*ppv = &This->IHTMLHtmlElement_iface;
|
|
|
|
else
|
|
|
|
return HTMLElement_QI(&This->element.node, riid, ppv);
|
|
|
|
|
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void HTMLHtmlElement_destructor(HTMLDOMNode *iface)
|
|
|
|
{
|
|
|
|
HTMLHtmlElement *This = HTMLHtmlElement_from_HTMLDOMNode(iface);
|
|
|
|
|
|
|
|
HTMLElement_destructor(&This->element.node);
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL HTMLHtmlElement_is_settable(HTMLDOMNode *iface, DISPID dispid)
|
|
|
|
{
|
|
|
|
switch(dispid) {
|
|
|
|
case DISPID_IHTMLELEMENT_OUTERTEXT:
|
|
|
|
return FALSE;
|
|
|
|
default:
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static const NodeImplVtbl HTMLHtmlElementImplVtbl = {
|
2017-04-21 13:50:49 +02:00
|
|
|
&CLSID_HTMLHtmlElement,
|
2016-03-31 14:51:08 +02:00
|
|
|
HTMLHtmlElement_QI,
|
|
|
|
HTMLHtmlElement_destructor,
|
|
|
|
HTMLElement_cpc,
|
|
|
|
HTMLElement_clone,
|
|
|
|
HTMLElement_handle_event,
|
|
|
|
HTMLElement_get_attr_col,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
NULL,
|
|
|
|
HTMLHtmlElement_is_settable
|
|
|
|
};
|
|
|
|
|
|
|
|
static const tid_t HTMLHtmlElement_iface_tids[] = {
|
|
|
|
HTMLELEMENT_TIDS,
|
|
|
|
IHTMLHtmlElement_tid,
|
|
|
|
0
|
|
|
|
};
|
|
|
|
static dispex_static_data_t HTMLHtmlElement_dispex = {
|
2021-10-06 17:11:31 +02:00
|
|
|
L"HTMLHtmlElement",
|
2016-03-31 14:51:08 +02:00
|
|
|
NULL,
|
|
|
|
DispHTMLHtmlElement_tid,
|
2016-07-07 12:50:18 +02:00
|
|
|
HTMLHtmlElement_iface_tids,
|
|
|
|
HTMLElement_init_dispex_info
|
2016-03-31 14:51:08 +02:00
|
|
|
};
|
|
|
|
|
2018-02-12 01:29:41 +01:00
|
|
|
HRESULT HTMLHtmlElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem)
|
2016-03-31 14:51:08 +02:00
|
|
|
{
|
|
|
|
HTMLHtmlElement *ret;
|
|
|
|
|
|
|
|
ret = heap_alloc_zero(sizeof(*ret));
|
|
|
|
if(!ret)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
|
|
|
|
ret->IHTMLHtmlElement_iface.lpVtbl = &HTMLHtmlElementVtbl;
|
|
|
|
ret->element.node.vtbl = &HTMLHtmlElementImplVtbl;
|
|
|
|
|
|
|
|
HTMLElement_Init(&ret->element, doc, nselem, &HTMLHtmlElement_dispex);
|
|
|
|
|
2011-06-21 13:48:00 +02:00
|
|
|
*elem = &ret->element;
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2018-02-27 14:58:04 +01:00
|
|
|
struct HTMLMetaElement {
|
|
|
|
HTMLElement element;
|
|
|
|
|
|
|
|
IHTMLMetaElement IHTMLMetaElement_iface;
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline HTMLMetaElement *impl_from_IHTMLMetaElement(IHTMLMetaElement *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLMetaElement, IHTMLMetaElement_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_QueryInterface(IHTMLMetaElement *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLMetaElement_AddRef(IHTMLMetaElement *iface)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLMetaElement_Release(IHTMLMetaElement *iface)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_GetTypeInfoCount(IHTMLMetaElement *iface, UINT *pctinfo)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_GetTypeInfo(IHTMLMetaElement *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
|
|
|
|
ppTInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_GetIDsOfNames(IHTMLMetaElement *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
|
|
|
|
cNames, lcid, rgDispId);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_Invoke(IHTMLMetaElement *iface, DISPID dispIdMember, REFIID riid,
|
|
|
|
LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
|
|
|
|
UINT *puArgErr)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
|
|
|
|
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_put_httpEquiv(IHTMLMetaElement *iface, BSTR v)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_get_httpEquiv(IHTMLMetaElement *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2020-11-24 00:49:06 +01:00
|
|
|
return elem_string_attr_getter(&This->element, L"http-equiv", TRUE, p);
|
2018-02-27 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_put_content(IHTMLMetaElement *iface, BSTR v)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_get_content(IHTMLMetaElement *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2020-11-24 00:49:06 +01:00
|
|
|
return elem_string_attr_getter(&This->element, L"content", TRUE, p);
|
2018-02-27 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_put_name(IHTMLMetaElement *iface, BSTR v)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_get_name(IHTMLMetaElement *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2020-11-24 00:49:06 +01:00
|
|
|
return elem_string_attr_getter(&This->element, L"name", TRUE, p);
|
2018-02-27 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_put_url(IHTMLMetaElement *iface, BSTR v)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_get_url(IHTMLMetaElement *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_put_charset(IHTMLMetaElement *iface, BSTR v)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
|
|
|
|
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
|
|
|
|
|
2020-11-24 00:49:05 +01:00
|
|
|
return elem_string_attr_setter(&This->element, L"charset", v);
|
2018-02-27 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLMetaElement_get_charset(IHTMLMetaElement *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = impl_from_IHTMLMetaElement(iface);
|
|
|
|
|
|
|
|
TRACE("(%p)->(%p)\n", This, p);
|
|
|
|
|
2020-11-24 00:49:05 +01:00
|
|
|
return elem_string_attr_getter(&This->element, L"charset", TRUE, p);
|
2018-02-27 14:58:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLMetaElementVtbl HTMLMetaElementVtbl = {
|
|
|
|
HTMLMetaElement_QueryInterface,
|
|
|
|
HTMLMetaElement_AddRef,
|
|
|
|
HTMLMetaElement_Release,
|
|
|
|
HTMLMetaElement_GetTypeInfoCount,
|
|
|
|
HTMLMetaElement_GetTypeInfo,
|
|
|
|
HTMLMetaElement_GetIDsOfNames,
|
|
|
|
HTMLMetaElement_Invoke,
|
|
|
|
HTMLMetaElement_put_httpEquiv,
|
|
|
|
HTMLMetaElement_get_httpEquiv,
|
|
|
|
HTMLMetaElement_put_content,
|
|
|
|
HTMLMetaElement_get_content,
|
|
|
|
HTMLMetaElement_put_name,
|
|
|
|
HTMLMetaElement_get_name,
|
|
|
|
HTMLMetaElement_put_url,
|
|
|
|
HTMLMetaElement_get_url,
|
|
|
|
HTMLMetaElement_put_charset,
|
|
|
|
HTMLMetaElement_get_charset
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline HTMLMetaElement *HTMLMetaElement_from_HTMLDOMNode(HTMLDOMNode *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLMetaElement, element.node);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT HTMLMetaElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = HTMLMetaElement_from_HTMLDOMNode(iface);
|
|
|
|
|
|
|
|
if(IsEqualGUID(&IID_IUnknown, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
|
|
|
|
*ppv = &This->IHTMLMetaElement_iface;
|
|
|
|
}else if(IsEqualGUID(&IID_IDispatch, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
|
|
|
|
*ppv = &This->IHTMLMetaElement_iface;
|
|
|
|
}else if(IsEqualGUID(&IID_IHTMLMetaElement, riid)) {
|
|
|
|
TRACE("(%p)->(IID_IHTMLMetaElement %p)\n", This, ppv);
|
|
|
|
*ppv = &This->IHTMLMetaElement_iface;
|
|
|
|
}else {
|
|
|
|
return HTMLElement_QI(&This->element.node, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void HTMLMetaElement_destructor(HTMLDOMNode *iface)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *This = HTMLMetaElement_from_HTMLDOMNode(iface);
|
|
|
|
|
|
|
|
HTMLElement_destructor(&This->element.node);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const NodeImplVtbl HTMLMetaElementImplVtbl = {
|
|
|
|
&CLSID_HTMLMetaElement,
|
|
|
|
HTMLMetaElement_QI,
|
|
|
|
HTMLMetaElement_destructor,
|
|
|
|
HTMLElement_cpc,
|
|
|
|
HTMLElement_clone,
|
|
|
|
HTMLElement_handle_event,
|
|
|
|
HTMLElement_get_attr_col
|
|
|
|
};
|
|
|
|
|
|
|
|
static const tid_t HTMLMetaElement_iface_tids[] = {
|
|
|
|
HTMLELEMENT_TIDS,
|
|
|
|
IHTMLMetaElement_tid,
|
|
|
|
0
|
|
|
|
};
|
|
|
|
|
|
|
|
static dispex_static_data_t HTMLMetaElement_dispex = {
|
2021-10-06 17:11:31 +02:00
|
|
|
L"HTMLMetaElement",
|
2018-02-27 14:58:04 +01:00
|
|
|
NULL,
|
|
|
|
DispHTMLMetaElement_tid,
|
|
|
|
HTMLMetaElement_iface_tids,
|
|
|
|
HTMLElement_init_dispex_info
|
|
|
|
};
|
|
|
|
|
|
|
|
HRESULT HTMLMetaElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem)
|
|
|
|
{
|
|
|
|
HTMLMetaElement *ret;
|
|
|
|
|
|
|
|
ret = heap_alloc_zero(sizeof(*ret));
|
|
|
|
if(!ret)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
|
|
|
|
ret->IHTMLMetaElement_iface.lpVtbl = &HTMLMetaElementVtbl;
|
|
|
|
ret->element.node.vtbl = &HTMLMetaElementImplVtbl;
|
|
|
|
|
|
|
|
HTMLElement_Init(&ret->element, doc, nselem, &HTMLMetaElement_dispex);
|
|
|
|
|
|
|
|
*elem = &ret->element;
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2017-04-14 14:36:36 +02:00
|
|
|
struct HTMLHeadElement {
|
2011-06-21 13:47:09 +02:00
|
|
|
HTMLElement element;
|
|
|
|
|
|
|
|
IHTMLHeadElement IHTMLHeadElement_iface;
|
2017-04-14 14:36:36 +02:00
|
|
|
};
|
2011-06-21 13:47:09 +02:00
|
|
|
|
|
|
|
static inline HTMLHeadElement *impl_from_IHTMLHeadElement(IHTMLHeadElement *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLHeadElement, IHTMLHeadElement_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHeadElement_QueryInterface(IHTMLHeadElement *iface,
|
|
|
|
REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_QueryInterface(&This->element.node.IHTMLDOMNode_iface, riid, ppv);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLHeadElement_AddRef(IHTMLHeadElement *iface)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_AddRef(&This->element.node.IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI HTMLHeadElement_Release(IHTMLHeadElement *iface)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
|
|
|
|
return IHTMLDOMNode_Release(&This->element.node.IHTMLDOMNode_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHeadElement_GetTypeInfoCount(IHTMLHeadElement *iface, UINT *pctinfo)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
|
2015-05-14 13:24:19 +02:00
|
|
|
return IDispatchEx_GetTypeInfoCount(&This->element.node.event_target.dispex.IDispatchEx_iface, pctinfo);
|
2011-06-21 13:47:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHeadElement_GetTypeInfo(IHTMLHeadElement *iface, UINT iTInfo,
|
|
|
|
LCID lcid, ITypeInfo **ppTInfo)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
|
2015-05-14 13:24:19 +02:00
|
|
|
return IDispatchEx_GetTypeInfo(&This->element.node.event_target.dispex.IDispatchEx_iface, iTInfo, lcid,
|
2011-06-21 13:47:09 +02:00
|
|
|
ppTInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHeadElement_GetIDsOfNames(IHTMLHeadElement *iface, REFIID riid,
|
|
|
|
LPOLESTR *rgszNames, UINT cNames,
|
|
|
|
LCID lcid, DISPID *rgDispId)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
|
2015-05-14 13:24:19 +02:00
|
|
|
return IDispatchEx_GetIDsOfNames(&This->element.node.event_target.dispex.IDispatchEx_iface, riid, rgszNames,
|
2011-06-21 13:47:09 +02:00
|
|
|
cNames, lcid, rgDispId);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHeadElement_Invoke(IHTMLHeadElement *iface, DISPID dispIdMember,
|
|
|
|
REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
|
|
|
|
VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
|
2015-05-14 13:24:19 +02:00
|
|
|
return IDispatchEx_Invoke(&This->element.node.event_target.dispex.IDispatchEx_iface, dispIdMember, riid,
|
2011-06-21 13:47:09 +02:00
|
|
|
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHeadElement_put_profile(IHTMLHeadElement *iface, BSTR v)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI HTMLHeadElement_get_profile(IHTMLHeadElement *iface, BSTR *p)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_IHTMLHeadElement(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, p);
|
|
|
|
return E_NOTIMPL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const IHTMLHeadElementVtbl HTMLHeadElementVtbl = {
|
|
|
|
HTMLHeadElement_QueryInterface,
|
|
|
|
HTMLHeadElement_AddRef,
|
|
|
|
HTMLHeadElement_Release,
|
|
|
|
HTMLHeadElement_GetTypeInfoCount,
|
|
|
|
HTMLHeadElement_GetTypeInfo,
|
|
|
|
HTMLHeadElement_GetIDsOfNames,
|
|
|
|
HTMLHeadElement_Invoke,
|
|
|
|
HTMLHeadElement_put_profile,
|
|
|
|
HTMLHeadElement_get_profile
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline HTMLHeadElement *impl_from_HTMLDOMNode(HTMLDOMNode *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, HTMLHeadElement, element.node);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT HTMLHeadElement_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_HTMLDOMNode(iface);
|
|
|
|
|
2014-09-02 11:45:36 +02:00
|
|
|
TRACE("(%p)->(%s %p)\n", This, debugstr_mshtml_guid(riid), ppv);
|
|
|
|
|
|
|
|
if(IsEqualGUID(&IID_IHTMLHeadElement, riid))
|
2011-06-21 13:47:09 +02:00
|
|
|
*ppv = &This->IHTMLHeadElement_iface;
|
2021-03-29 12:05:20 +02:00
|
|
|
else if(IsEqualGUID(&DIID_DispHTMLHeadElement, riid))
|
|
|
|
*ppv = &This->IHTMLHeadElement_iface;
|
2014-09-02 11:45:36 +02:00
|
|
|
else
|
2011-07-29 13:06:35 +02:00
|
|
|
return HTMLElement_QI(&This->element.node, riid, ppv);
|
2011-06-21 13:47:09 +02:00
|
|
|
|
|
|
|
IUnknown_AddRef((IUnknown*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void HTMLHeadElement_destructor(HTMLDOMNode *iface)
|
|
|
|
{
|
|
|
|
HTMLHeadElement *This = impl_from_HTMLDOMNode(iface);
|
|
|
|
|
|
|
|
HTMLElement_destructor(&This->element.node);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const NodeImplVtbl HTMLHeadElementImplVtbl = {
|
2017-04-21 13:50:49 +02:00
|
|
|
&CLSID_HTMLHeadElement,
|
2011-06-21 13:47:09 +02:00
|
|
|
HTMLHeadElement_QI,
|
|
|
|
HTMLHeadElement_destructor,
|
2013-03-15 15:01:53 +01:00
|
|
|
HTMLElement_cpc,
|
2011-08-25 15:23:35 +02:00
|
|
|
HTMLElement_clone,
|
2012-09-04 13:58:58 +02:00
|
|
|
HTMLElement_handle_event,
|
2011-08-25 15:23:35 +02:00
|
|
|
HTMLElement_get_attr_col
|
2011-06-21 13:47:09 +02:00
|
|
|
};
|
|
|
|
|
2011-06-21 13:47:20 +02:00
|
|
|
static const tid_t HTMLHeadElement_iface_tids[] = {
|
|
|
|
HTMLELEMENT_TIDS,
|
|
|
|
IHTMLHeadElement_tid,
|
|
|
|
0
|
|
|
|
};
|
|
|
|
static dispex_static_data_t HTMLHeadElement_dispex = {
|
2021-10-06 17:11:31 +02:00
|
|
|
L"HTMLHeadElement",
|
2011-06-21 13:47:20 +02:00
|
|
|
NULL,
|
|
|
|
DispHTMLHeadElement_tid,
|
2016-07-07 12:50:18 +02:00
|
|
|
HTMLHeadElement_iface_tids,
|
|
|
|
HTMLElement_init_dispex_info
|
2011-06-21 13:47:20 +02:00
|
|
|
};
|
|
|
|
|
2018-02-12 01:29:41 +01:00
|
|
|
HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem)
|
2011-06-21 13:47:09 +02:00
|
|
|
{
|
|
|
|
HTMLHeadElement *ret;
|
|
|
|
|
|
|
|
ret = heap_alloc_zero(sizeof(*ret));
|
|
|
|
if(!ret)
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
|
|
|
|
ret->IHTMLHeadElement_iface.lpVtbl = &HTMLHeadElementVtbl;
|
|
|
|
ret->element.node.vtbl = &HTMLHeadElementImplVtbl;
|
|
|
|
|
2011-06-21 13:47:20 +02:00
|
|
|
HTMLElement_Init(&ret->element, doc, nselem, &HTMLHeadElement_dispex);
|
2011-06-21 13:47:09 +02:00
|
|
|
|
|
|
|
*elem = &ret->element;
|
|
|
|
return S_OK;
|
|
|
|
}
|