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

  • Revision slug: Web/API/LinkStyle
  • Revision title: LinkStyle
  • Revision id: 653851
  • Created:
  • Creator: Sebastianz
  • Is current revision? No
  • Comment Added 'NeedsBrowserCompatibility' tag

Revision Content

{{APIRef}}

Summary

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

 

See also

 

Revision Source

<p>{{APIRef}}</p>
<h2 id="Summary">Summary</h2>
<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" name="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>&nbsp;</p>
<h2 id="See_also">See also</h2>
<p>&nbsp;</p>
Revert to this revision