이 번역은 완료되지 않았습니다. 이 문서를 번역해 주세요.

is 전역 속성을 이용해 어떤 표준 HTML 요소를 사용자 정의 빌트인 요소(custom built-in element)처럼 동작하도록 지정할 수 있습니다(더 자세한 사항은 사용자 정의 요소 사용하기(Using custom elements)를 참고하세요).

이 속성은 특정한 사용자 요소의 이름이 현재 문서에서 성공적으로 정의(defined)되고 적용 중인 요소의 형식을 확장하는 경우에만 사용될 수 있습니다(This attribute can only be used if the specified custom element name has been successfully defined in the current document, and extends the element type it is being applied to).

Examples

다음 코드는 word-count-web-component 예제에서 발췌한 것입니다(실제 동작 보기).

// Create a class for the element
class WordCount extends HTMLParagraphElement {
  constructor() {
    // Always call super first in constructor
    super();

    // Constructor contents ommitted for brevity
    ...

  }
}

// Define the new element
customElements.define('word-count', WordCount, { extends: 'p' });
<p is="word-count"></p>

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 67Edge No support NoFirefox Full support 63
Full support 63
Full support 59
Disabled
Disabled From version 59: this feature is behind the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support ? — 59
Disabled
Disabled Until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true) and the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE No support NoOpera Full support 55Safari No support NoWebView Android Full support 67Chrome Android Full support 67Edge Mobile No support NoFirefox Android Full support 63
Full support 63
Full support 59
Disabled
Disabled From version 59: this feature is behind the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
No support ? — 59
Disabled
Disabled Until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true) and the dom.webcomponents.customelements.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Full support 55Safari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
User must explicitly enable this feature.
User must explicitly enable this feature.

See also

 

문서 태그 및 공헌자

이 페이지의 공헌자: dolmoon
최종 변경자: dolmoon,