mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
LibWeb: Factor out HTMLOrSVGElement
This is a mixin in the IDL, so let's treat it as a mixin in our code and let both SVGElement and MathMLElement reuse the implementations that we wrote for HTMLElement.
This commit is contained in:
parent
d9124c8058
commit
5f84c2c3af
Notes:
github-actions[bot]
2024-10-31 09:47:30 +00:00
Author: https://github.com/gmta
Commit: 5f84c2c3af
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2036
Reviewed-by: https://github.com/tcl3
14 changed files with 130 additions and 117 deletions
|
@ -1,6 +1,7 @@
|
|||
#import <CSS/ElementCSSInlineStyle.idl>
|
||||
#import <HTML/DOMStringMap.idl>
|
||||
#import <HTML/ElementInternals.idl>
|
||||
#import <HTML/HTMLOrSVGElement.idl>
|
||||
#import <DOM/Element.idl>
|
||||
#import <DOM/EventHandler.idl>
|
||||
|
||||
|
@ -59,16 +60,4 @@ interface mixin ElementContentEditable {
|
|||
[FIXME, CEReactions] attribute DOMString inputMode;
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/#htmlorsvgelement
|
||||
interface mixin HTMLOrSVGElement {
|
||||
[SameObject] readonly attribute DOMStringMap dataset;
|
||||
[FIXME] attribute DOMString nonce; // intentionally no [CEReactions]
|
||||
|
||||
[CEReactions, Reflect] attribute boolean autofocus;
|
||||
[CEReactions] attribute long tabIndex;
|
||||
// FIXME: Support the optional FocusOptions parameter.
|
||||
undefined focus();
|
||||
undefined blur();
|
||||
};
|
||||
|
||||
HTMLElement includes ElementCSSInlineStyle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue