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.
HTMLContentElement.select property reflects the
select attribute. It is a
DOMString containing a space-separated list of CSS selectors that select the content to insert in place of the <content> element.
object.select = "CSSselector CSSselector ...";
// Select <h1> elements and elements with class="error" myContentObject.select = "h1 .error";
This feature is no longer defined by any standards.
|Feature||Android webview||Chrome for Android||Edge mobile||Firefox for Android||Opera Android||iOS Safari||Samsung Internet|
|Basic support||37||37||?||28 — 591||26||?||Yes|
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.