diff --git a/Userland/Libraries/LibWeb/HTML/HTMLElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLElement.idl
index fb81dffd01..2917676b44 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLElement.idl
+++ b/Userland/Libraries/LibWeb/HTML/HTMLElement.idl
@@ -22,9 +22,6 @@ interface HTMLElement : Element {
readonly attribute long offsetWidth;
readonly attribute long offsetHeight;
- // FIXME: This should come from a HTMLOrSVGElement mixin
- [SameObject] readonly attribute DOMStringMap dataset;
-
// FIXME: These should all come from a GlobalEventHandlers mixin
attribute EventHandler onabort;
attribute EventHandler onauxclick;
@@ -97,3 +94,9 @@ interface HTMLElement : Element {
attribute EventHandler onwheel;
};
+
+HTMLElement includes HTMLOrSVGElement;
+
+interface mixin HTMLOrSVGElement {
+ [SameObject] readonly attribute DOMStringMap dataset;
+};
diff --git a/Userland/Libraries/LibWeb/SVG/SVGElement.idl b/Userland/Libraries/LibWeb/SVG/SVGElement.idl
index cf448f6693..45f932b0b6 100644
--- a/Userland/Libraries/LibWeb/SVG/SVGElement.idl
+++ b/Userland/Libraries/LibWeb/SVG/SVGElement.idl
@@ -1,7 +1,8 @@
#import
+#import
#import
interface SVGElement : Element {
- // FIXME: This should come from a HTMLOrSVGElement mixin
- [SameObject] readonly attribute DOMStringMap dataset;
};
+
+SVGElement includes HTMLOrSVGElement;