-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Implement the HTMLOrSVGElement WebIDL #32169
Copy link
Copy link
Open
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentB-feature-trackingThis issue tracks a particular high-level featureThis issue tracks a particular high-level feature
Description
The HTMLOrSVGElement mixin defines a few properties and methods:
-
dataset -
nonce -
autofocus(script: implement autofocus IDL reflection #32170) -
tabIndex(script: Expose thetabIndexproperty onHTMLOrSVGElement#42913) -
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 HTMLElements and SVGElements, not just HTMLElements.
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();
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentB-feature-trackingThis issue tracks a particular high-level featureThis issue tracks a particular high-level feature