mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibWeb: Add the HTMLOrSVGElement IDL interface mixin
This commit is contained in:
parent
46fa18657c
commit
1577bac6a5
Notes:
sideshowbarker
2024-07-17 16:26:33 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/1577bac6a5 Pull-request: https://github.com/SerenityOS/serenity/pull/13369 Reviewed-by: https://github.com/alimpfard ✅
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#import <DOM/Element.idl>
|
||||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/DOMStringMap.idl>
|
||||
|
||||
interface SVGElement : Element {
|
||||
// FIXME: This should come from a HTMLOrSVGElement mixin
|
||||
[SameObject] readonly attribute DOMStringMap dataset;
|
||||
};
|
||||
|
||||
SVGElement includes HTMLOrSVGElement;
|
||||
|
|
Loading…
Reference in a new issue