HTMLContentElement

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 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 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.

HTMLContentElement.getDistributedNodes()

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

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

This feature is no longer defined by any standards.

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

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
HTMLSlotElement
assign
assignedElements
assignedNodes
name
slotchange event

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
Has more compatibility info.

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