Draft This page is not complete.
The HTMLOrForeignElement
mixin describes several features common to the HTMLElement
, SVGElement
and MathMLElement
interfaces. Each of these interfaces can, of course, add more features in addition to the ones listed below.
Note: HTMLOrForeignElement
is a mixin and not an interface; you can't actually create an object of type HTMLOrForeignElement
.
Properties
dataset
Read only- The
dataset
read-only property of theHTMLOrForeignElement
interface provides read/write access to all the custom data attributes (data-*
) set on the element. nonce
- The
nonce
property of theHTMLOrForeignElement
interface returns the cryptographic number used once that is used by Content Security Policy to determine whether a given fetch will be allowed to proceed. tabIndex
- The
tabIndex
property of theHTMLOrForeignElement
interface represents the tab order of the current element. blur()
- The
HTMLElement.blur()
method removes keyboard focus from the current element. focus()
- The
HTMLElement.focus()
method sets focus on the specified element, if it can be focused. The focused element is the element which will receive keyboard and similar events by default.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of 'HTMLOrForeignElement ' in that specification.
|
Living Standard | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
No compatibility data found. Please contribute data for "api.HTMLOrForeignElement" (depth: 1) to the MDN compatibility data repository.
See also
HTMLOrForeignElement by Mozilla Contributors is licensed under CC-BY-SA 2.5.