--- title: HTMLContentElement.select slug: Web/API/HTMLContentElement/select tags: - Necesita traducción translation_of: Web/API/HTMLContentElement/select ---
{{ APIRef("Web Components") }}
The HTMLContentElement.select property reflects the select attribute. It is a {{domxref("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";
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('Shadow DOM', '#the-content-element', 'content')}} | {{Spec2('Shadow DOM')}} |
{{CompatibilityTable}}
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | 35 | {{CompatGeckoDesktop("28")}} [1] | {{CompatNo}} | 26 | {{CompatNo}} |
| Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 37 | {{CompatGeckoMobile("28")}} [1] | {{CompatNo}} | {{CompatUnknown}} | {{CompatUnknown}} |
[1] If Shadow DOM is not enabled in Firefox, <content> elements will behave like {{domxref("HTMLUnknownElement")}}. Shadow DOM was first implemented in Firefox 28 and is behind a preference, dom.webcomponents.enabled, which is disabled by default.