LinkStyle

  • Revision slug: Web/API/LinkStyle
  • Revision title: LinkStyle
  • Revision id: 471039
  • Created:
  • Creator: kscarfone
  • Is current revision? No
  • Comment Updated tags

Revision Content

{{CSSOMRef}}

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', '#stylesheet', 'LinkStyle') }} {{ Spec2('CSSOM') }} No change from {{ SpecName('DOM2 Style') }}.
{{ SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-LinkStyle', 'StyleSheet') }} {{ Spec2('DOM2 Style') }} Initial definition.

Browser compatibility

 

See also

 

Revision Source

<p>{{CSSOMRef}}</p>
<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', '#stylesheet', 'LinkStyle') }}</td>
      <td>{{ Spec2('CSSOM') }}</td>
      <td>No change from {{ SpecName('DOM2 Style') }}.</td>
    </tr>
    <tr>
      <td>{{ SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-LinkStyle', 'StyleSheet') }}</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