Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1132881 of ShadowRoot

  • Revision slug: Web/API/ShadowRoot
  • Revision title: ShadowRoot
  • Revision id: 1132881
  • Created:
  • Creator: jpmedley
  • Is current revision? Yes
  • Comment

Revision Content

{{APIRef('Shadow DOM')}} {{Non-standard_header}}

The ShadowRoot interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.

Properties

{{domxref("ShadowRoot.host")}} {{readonlyinline}}
A DOM element to which the ShadowRoot is attatched.
{{domxref("ShadowRoot.innerHTML")}}
The DOM tree inside the ShadowRoot.

Specifications

Specification Status Comment
{{SpecName('Shadow DOM')}} {{Spec2('Shadow DOM')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatChrome(53.0)}} {{CompatNo}} {{CompatNo}} {{CompatUnknown}} {{CompatNo}}
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support {{CompatNo}} {{CompatChrome(53.0)}} {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatChrome(53.0)}}
  •  
  • Create new recall
  • Q
  • A
 

Revision Source

<p>{{APIRef('Shadow DOM')}}&nbsp;{{Non-standard_header}}</p>

<p>The <code><strong>ShadowRoot</strong></code> interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.</p>

<h2 id="Properties">Properties</h2>

<dl>
 <dt>{{domxref("ShadowRoot.host")}} {{readonlyinline}}</dt>
 <dd>A DOM element to which the <code>ShadowRoot</code>&nbsp;is attatched.</dd>
 <dt>{{domxref("ShadowRoot.innerHTML")}}</dt>
 <dd>The DOM tree inside the <code>ShadowRoot</code>.</dd>
 <dt>
 
 </dt>
</dl>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('Shadow DOM')}}</td>
   <td>{{Spec2('Shadow DOM')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatChrome(53.0)}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Android Webview</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>Firefox OS</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
   <th>Chrome for Android</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatChrome(53.0)}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatChrome(53.0)}}</td>
  </tr>
 </tbody>
</table>
</div>

<div class="selection-menu" style="position: absolute; top: -9999px;">
<ul>
 <li id="idr-home">&nbsp;</li>
 <li id="create-new-recall" style="padding-left: .5em; padding-right: .5em;">Create new <strong>recall</strong></li>
 <li class="shortcut" id="create-new-recall-q">Q</li>
 <li class="shortcut" id="create-new-recall-a">A</li>
</ul>
</div>

<div style="top: 0px; left: 0px; position: absolute;">&nbsp;</div>
Revert to this revision