Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

HTMLContentElement

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

The HTMLContentElement interface represents a <content> HTML Element, which is used in Shadow DOM

Properties

This interface inherits the properties of HTMLElement.

HTMLContentElement.select
Is a DOMString that reflects the select HTML attribute. The value is a comma-separated list of CSS selectors that select the content to insert in place of the <content> element.

Methods

This interface inherits the methods of HTMLElement.

HTMLContentElement.getDistributedNodes()
Returns a static NodeList of the distributed nodes associated with this <content> element. 

Specifications

Specification Status Comment
Shadow DOM
The definition of 'content' in that specification.
Working Draft  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 35 28 (28) [1] No support 26 No support
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 37 28.0 (28) [1] No support ? ?

[1] If Shadow DOM is not enabled in Firefox, <content> elements will behave like HTMLUnknownElement. Shadow DOM was first implemented in Firefox 28 and is behind a preference, dom.webcomponents.enabled, which is disabled by default.

See also

 

문서 태그 및 공헌자

 이 페이지의 공헌자: slimsag, maybe, fscholz, markg
 최종 변경: slimsag,