--- title: HTMLContentElement slug: Web/API/HTMLContentElement translation_of: Web/API/HTMLContentElement ---

{{ APIRef("Web Components") }}

{{Deprecated_header}}

The HTMLContentElement interface represents a {{HTMLElement("content")}} HTML Element, which is used in Shadow DOM

Свойства

This interface inherits the properties of {{domxref("HTMLElement")}}.

{{domxref("HTMLContentElement.select")}}
Is a {{domxref("DOMString")}} that reflects the {{ htmlattrxref("select", "content") }} 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 {{domxref("HTMLElement")}}.

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

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

This feature is no longer defined by any standards.

Поддержка браузерами

{{Compat("api.HTMLContentElement")}}

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