This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

HTMLContentElement

Baseline
Widely available
*

This feature is well established and works across many devices and browser versions. It’s been available across browsers since январь 2020 г..

* Some parts of this feature may have varying levels of support.

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

Свойства

This interface inherits the properties of HTMLElement.

HTMLContentElement.select

Is a String 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.

HTMLContentElement.getDistributedNodes()

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

Спецификации

This feature is no longer defined by any standards.

Совместимость с браузерами

Смотрите также