Implement the `HTMLOrSVGElement` WebIDL
Opened this issue · 0 comments
nolanlawson commented
The HTMLOrSVGElement
mixin defines a few properties and methods:
-
dataset
-
nonce
-
autofocus
(#32170) -
tabIndex
-
focus()
-
blur()
These are partially implemented in Servo – dataset
, focus()
, and blur()
as of this writing. But to match the spec, they should be part of this mixin, so that they can apply to both HTMLElement
s and SVGElement
s, not just HTMLElement
s.
Here is the full WebIDL for completeness:
interface mixin HTMLOrSVGElement {
[SameObject] readonly attribute DOMStringMap dataset;
attribute DOMString nonce; // intentionally no [CEReactions]
[CEReactions] attribute boolean autofocus;
[CEReactions] attribute long tabIndex;
undefined focus(optional FocusOptions options = {});
undefined blur();
};