Skip to content

Implement the HTMLOrSVGElement WebIDL #32169

@nolanlawson

Description

@nolanlawson

The HTMLOrSVGElement mixin defines a few properties and methods:

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();
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/domInteracting with the DOM from web contentB-feature-trackingThis issue tracks a particular high-level feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions