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 891229 of LinkStyle

  • Revision slug: Web/API/LinkStyle
  • Revision title: LinkStyle
  • Revision id: 891229
  • Created:
  • Creator: Sebastianz
  • Is current revision? Yes
  • Comment Added table to 'Browser compatibility' section and fixed page formatting to allow the compat data scraper to parse the page

Revision Content

{{APIRef("CSSOM")}}

The LinkStyle interface allows to access the associated CSS style sheet of a node.

LinkStyle is a raw interface and no object of this type can be created; it is implemented by {{domxref("HTMLLinkElement")}} and {{domxref("HTMLStyleElement")}} objects.

Properties

There is no inherited property.

{{domxref("LinkStyle.sheet")}} {{readonlyInline}}
Returns the {{domxref("StyleSheet")}} object associated with the given element, or null if there is none.

Methods

This interface implements no method.

Specifications

Specification Status Comment
{{SpecName('CSSOM', '#the-linkstyle-interface', 'LinkStyle')}} {{Spec2('CSSOM')}} No change from {{SpecName('DOM2 Style')}}.
{{SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-LinkStyle', 'LinkStyle')}} {{Spec2('DOM2 Style')}} Initial definition

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

Revision Source

<div>{{APIRef("CSSOM")}}</div>

<p>The <code><strong>LinkStyle</strong></code> interface allows to access the <em>associated CSS style sheet</em> of a node.</p>

<p><code>LinkStyle</code> is a raw interface and no object of this type can be created; it is implemented by {{domxref("HTMLLinkElement")}} and {{domxref("HTMLStyleElement")}} objects.</p>

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

<p><em>There is no inherited property.</em></p>

<dl>
 <dt>{{domxref("LinkStyle.sheet")}} {{readonlyInline}}</dt>
 <dd>Returns the {{domxref("StyleSheet")}} object associated with the given element, or <code>null</code> if there is none.</dd>
</dl>

<h2 id="Methods">Methods</h2>

<p><em>This interface implements no method.</em></p>

<h2 id="Specification">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('CSSOM', '#the-linkstyle-interface', 'LinkStyle')}}</td>
   <td>{{Spec2('CSSOM')}}</td>
   <td>No change from {{SpecName('DOM2 Style')}}.</td>
  </tr>
  <tr>
   <td>{{SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-LinkStyle', 'LinkStyle')}}</td>
   <td>{{Spec2('DOM2 Style')}}</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</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>
Revert to this revision