diff --git a/dlls/mshtml/htmlgeneric.c b/dlls/mshtml/htmlgeneric.c
index 47f1a0fd152..d49b5ad18a2 100644
--- a/dlls/mshtml/htmlgeneric.c
+++ b/dlls/mshtml/htmlgeneric.c
@@ -32,11 +32,11 @@
WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
-typedef struct {
+struct HTMLGenericElement {
HTMLElement element;
IHTMLGenericElement IHTMLGenericElement_iface;
-} HTMLGenericElement;
+};
static inline HTMLGenericElement *impl_from_IHTMLGenericElement(IHTMLGenericElement *iface)
{
diff --git a/include/mshtml.idl b/include/mshtml.idl
index 97f22a790c4..75946b14870 100644
--- a/include/mshtml.idl
+++ b/include/mshtml.idl
@@ -7007,6 +7007,22 @@ methods:
[in, optional] VARIANT *hierarchy);
}
+/*****************************************************************************
+ * HTMLGenericElement coclass
+ */
+[
+ noncreatable,
+ uuid(3050f4b8-98b5-11cf-bb82-00aa00bdce0b)
+]
+coclass HTMLGenericElement
+{
+ [default] dispinterface DispHTMLGenericElement;
+ [source, default] dispinterface HTMLElementEvents;
+ [source] dispinterface HTMLElementEvents2;
+ WINE_HTMLELEMENT_INTERFACES;
+ interface IHTMLGenericElement;
+}
+
/*****************************************************************************
* IHTMLStyleSheetRule interface
*/