HTMLContentElement
Устарело: Эта возможность была удалена из веб-стандартов. Хотя некоторые браузеры по-прежнему могут поддерживать её, она находится в процессе удаления. Не используйте её ни в старых, ни в новых проектах. Страницы или веб-приложения, использующие её, могут в любой момент сломаться.
The HTMLContentElement
interface represents a <content>
(en-US) HTML Element, which is used in Shadow DOM (en-US).
Свойства
This interface inherits the properties of HTMLElement
.
HTMLContentElement.select
(en-US)-
Is a
DOMString
that reflects theselect
(en-US) 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()
(en-US)-
Returns a static
NodeList
of the distributed nodes associated with this<content>
element.
Спецификации
This feature is no longer defined by any standards.
Поддержка браузерами
BCD tables only load in the browser
Смотрите также
- The
<content>
(en-US) HTML element, implementing this interface. - Shadow DOM (en-US)