Your Search Results


    The HTMLContentElement interface represents a <content> HTML Element, which is used in Shadow DOM


    This interface inherits the properties of HTMLElement.
    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.

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


    Specification Status Comment
    Shadow DOM
    The definition of 'content' in that specification.
    Working Draft  

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
    Basic support 35 28 (28) [1] Not supported 26 Not supported
    Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
    Basic support 37 28.0 (28) [1] Not supported ? ?

    [1] If Shadow DOM is not enabled in Firefox, <content> elements will behave like HTMLUnknownElement. Shadow DOM was first implemented in Firefox 28 and is behind a preference, dom.webcomponents.enabled, which is disabled by default.

    See also


    Document Tags and Contributors

    Contributors to this page: fscholz, markg
    Last updated by: fscholz,