Deprecated 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.
Properties
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.
Methods
This interface inherits the methods of HTMLElement.
This feature is no longer defined by any standards.
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
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.
Desktop
Mobile
Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
Android webview
Chrome for Android
Edge Mobile
Firefox for Android
Opera for Android
iOS Safari
Samsung Internet
Basic support
Deprecated
Full support
35
?
No support
28 — 59
Disabled
No support
28 — 59
Disabled
Disabled 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.
No support
No
Full support
26
No support
No
Full support
37
Full support
37
?
No support
28 — 59
Disabled
No support
28 — 59
Disabled
Disabled 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.
Disabled 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.
No support
No
Full support
26
No support
No
Full support
37
Full support
37
?
No support
28 — 59
Disabled
No support
28 — 59
Disabled
Disabled 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.
Disabled 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.
No support
No
Full support
26
No support
No
Full support
37
Full support
37
?
No support
28 — 59
Disabled
No support
28 — 59
Disabled
Disabled 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.
Full support
26
?
?
Legend
Full support
Full support
No support
No support
Compatibility unknown
Compatibility unknown
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.
User must explicitly enable this feature.
User must explicitly enable this feature.
See also
The <content> HTML element, implementing this interface.
Thanks! Please check your inbox to confirm your subscription.
If you haven’t previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an email from us.