Commit b75e2c4d authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLLinkElement stub implementation.

parent 02f6ea92
......@@ -31,6 +31,7 @@ C_SRCS = \
htmliframe.c \
htmlimg.c \
htmlinput.c \
htmllink.c \
htmllocation.c \
htmlmeta.c \
htmlnode.c \
......
......@@ -45,6 +45,7 @@ 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 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};
......@@ -72,6 +73,7 @@ static const tag_desc_t tag_descs[] = {
{iframeW, HTMLIFrame_Create},
{imgW, HTMLImgElement_Create},
{inputW, HTMLInputElement_Create},
{linkW, HTMLLinkElement_Create},
{metaW, HTMLMetaElement_Create},
{objectW, HTMLObjectElement_Create},
{optionW, HTMLOptionElement_Create},
......
......@@ -92,6 +92,7 @@ typedef struct event_target_t event_target_t;
XDIID(DispHTMLIFrame) \
XDIID(DispHTMLImg) \
XDIID(DispHTMLInputElement) \
XDIID(DispHTMLLinkElement) \
XDIID(DispHTMLLocation) \
XDIID(DispHTMLMetaElement) \
XDIID(DispHTMLNavigator) \
......@@ -151,6 +152,7 @@ typedef struct event_target_t event_target_t;
XIID(IHTMLImageElementFactory) \
XIID(IHTMLImgElement) \
XIID(IHTMLInputElement) \
XIID(IHTMLLinkElement) \
XIID(IHTMLLocation) \
XIID(IHTMLMetaElement) \
XIID(IHTMLMimeTypesCollection) \
......@@ -879,6 +881,7 @@ HRESULT HTMLIFrame_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DE
HRESULT HTMLStyleElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN;
HRESULT HTMLImgElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN;
HRESULT HTMLInputElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN;
HRESULT HTMLLinkElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN;
HRESULT HTMLMetaElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN;
HRESULT HTMLObjectElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN;
HRESULT HTMLOptionElement_Create(HTMLDocumentNode*,nsIDOMHTMLElement*,HTMLElement**) DECLSPEC_HIDDEN;
......
......@@ -48,6 +48,7 @@ static const char range_test2_str[] =
static const char elem_test_str[] =
"<html><head><title>test</title><style id=\"styleid\">.body { margin-right: 0px; }</style>"
"<meta id=\"metaid\" name=\"meta name\" http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"
"<link id=\"linkid\"></head>"
"<body onload=\"Testing()\">text test<!-- a comment -->"
"<a id=\"a\" href=\"http://test\" name=\"x\">link</a>"
"<input id=\"in\" class=\"testclass\" tabIndex=\"2\" title=\"test title\" />"
......@@ -119,7 +120,8 @@ typedef enum {
ET_EMBED,
ET_DIV,
ET_META,
ET_NOSCRIPT
ET_NOSCRIPT,
ET_LINK
} elem_type_t;
static const IID * const none_iids[] = {
......@@ -320,6 +322,13 @@ static const IID * const meta_iids[] = {
NULL
};
static const IID * const link_iids[] = {
ELEM_IFACES,
&IID_IHTMLLinkElement,
&IID_IConnectionPointContainer,
NULL
};
static const IID * const object_iids[] = {
ELEM_IFACES,
&IID_IHTMLObjectElement,
......@@ -432,7 +441,8 @@ static const elem_type_info_t elem_type_infos[] = {
{"EMBED", embed_iids, &DIID_DispHTMLEmbed},
{"DIV", elem_iids, NULL},
{"META", meta_iids, &DIID_DispHTMLMetaElement},
{"NOSCRIPT", elem_iids, NULL /*&DIID_DispHTMLNoShowElement*/}
{"NOSCRIPT", elem_iids, NULL /*&DIID_DispHTMLNoShowElement*/},
{"LINK", link_iids, &DIID_DispHTMLLinkElement}
};
static const char *dbgstr_guid(REFIID riid)
......@@ -5277,6 +5287,7 @@ static void test_elems(IHTMLDocument2 *doc)
ET_TITLE,
ET_STYLE,
ET_META,
ET_LINK,
ET_BODY,
ET_COMMENT,
ET_A,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment