You are on the editable version of MDN Web Docs

MDN 웹 문서 사용자로 보기:

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

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.


dataset Read only
The dataset read-only property of the HTMLOrForeignElement interface provides read/write access to all the custom data attributes (data-*) set on the element.
The nonce property of the HTMLOrForeignElement 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.
The tabIndex property of the HTMLOrForeignElement interface represents the tab order of the current element.


The HTMLElement.blur() method removes keyboard focus from the current element.
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.


Specification Status Comment
HTML Living Standard
The definition of 'HTMLOrForeignElement' in that specification.
Living Standard Initial definition.

Browser compatibility

No compatibility data found. Please contribute data for "api.HTMLOrForeignElement" (depth: 1) to the MDN compatibility data repository.

See also

문서 태그 및 공헌자

이 페이지의 공헌자: ExE-Boss
최종 변경자: ExE-Boss,