Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).

This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

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


This interface inherits the properties of HTMLElement.

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.


This interface inherits the methods of HTMLElement.

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


This feature is no longer defined by any standards.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support35 ?28 — 591 No26 No
select35 ?28 — 591 No26 No
getDistributedNodes35 ?28 — 591 No26 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support3737 ?28 — 59126 ? ?
select3737 ?28 — 59126 ? ?
getDistributedNodes3737 ?28 — 59126 ? ?

1. From version 28 until version 59 (exclusive): this feature is behind the dom.webcomponents.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.

See also


Метки документа и участники

 Внесли вклад в эту страницу: ExE_Boss, DomenicDenicola, sideshowbarker, slimsag, maybe, fscholz, markg
 Обновлялась последний раз: ExE_Boss,