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 469799 of HTMLTableHeaderCellElement

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

Revision Content

{{ DomRef()}}

The HTMLTableHeaderCellElement interface provides special properties and methods (beyond the regular {{domxref("HTMLTableCellElement")}} and {{domxref("HTMLElement")}} interfaces it also has available to it by inheritance) for manipulating the layout and presentation of table header cells in an HTML document.

Properties

Inherits properties from its parent, {{domxref("HTMLTableCellElement")}}, and {{domxref("HTMLElement")}}.

{{domxref("HTMLTableHeaderCellElement.abbr")}}
Is a {{domxref("DOMString")}} containing a name used to refer to this cell in other context. It reflects the {{htmlattrxref("abbr", "th")}} attribute.
{{domxref("HTMLTableHeaderCellElement.scope")}}
Is a {{domxref("DOMString")}} representing an enumerated value indicating which cells the header cell applies to. It reflects the {{htmlattrxref("scope", "th")}} attribute and has one of the following values: "row", "col", "colgroup", or "rowgroup". If the attribute is in the auto state, or if an invalid value is set for the attribute, scope will be returns the empty string, "".
{{domxref("HTMLTableHeaderCellElement.sorted")}} {{experimental_inline}}
Is a {{domxref("Boolean")}} value indicating if the table is sorted by the scope associated with this header cell. It reflects the {{htmlattrxref("sorted", "th")}} attribute.

Methods

No specific method; inherits methods from its parent, {{domxref("HTMLTableCellElement")}}, and {{domxref("HTMLElement")}}.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', "tabular-data.html#the-table-element", "HTMLTableElement")}} {{Spec2('HTML WHATWG')}} Adds the sorted property.
{{SpecName('HTML5 W3C', "tabular-data.html#the-table-element", "HTMLTableElement")}} {{Spec2('HTML5 W3C')}} Initial definition.

Browser compatibility

{{CompatibilityTable}}
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatVersionUnknown}} {{CompatGeckoDesktop(1.0)}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
sorted {{experimental_inline}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatGeckoMobile(1.0)}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
sorted {{experimental_inline}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}} {{CompatNo}}

See also

  • The HTML element implementing this interface: {{HTMLElement("th")}}.

 

Revision Source

<div>
  {{ DomRef()}}</div>
<p>The <strong><span class="external"><code>HTMLTableHeaderCellElement</code></span></strong> interface provides special properties and methods (beyond the regular {{domxref("HTMLTableCellElement")}} and {{domxref("HTMLElement")}} interfaces it also has available to it by inheritance) for manipulating the layout and presentation of table header cells in an HTML document.</p>
<h2 id="Properties" name="Properties">Properties</h2>
<p><em>Inherits properties from its parent, </em><em>{{domxref("HTMLTableCellElement")}}, and {{domxref("HTMLElement")}}</em>.</p>
<dl>
  <dt>
    {{domxref("HTMLTableHeaderCellElement.abbr")}}</dt>
  <dd>
    Is a {{domxref("DOMString")}} containing a name used to refer to this cell in other context. It reflects the {{htmlattrxref("abbr", "th")}} attribute.</dd>
  <dt>
    {{domxref("HTMLTableHeaderCellElement.scope")}}</dt>
  <dd>
    Is a {{domxref("DOMString")}} representing an enumerated value indicating which cells the header cell applies to. It reflects the {{htmlattrxref("scope", "th")}} attribute and has one of the following values: <code>"row"</code>, <code>"col"</code>, <code>"colgroup"</code>, or <code>"rowgroup"</code>. If the attribute is in the <em>auto</em> state, or if an invalid value is set for the attribute, <code>scope</code> will be returns the empty string, <code>""</code>.</dd>
  <dt>
    {{domxref("HTMLTableHeaderCellElement.sorted")}} {{experimental_inline}}</dt>
  <dd>
    Is a {{domxref("Boolean")}} value indicating if the table is sorted by the scope associated with this header cell. It reflects the {{htmlattrxref("sorted", "th")}} attribute.</dd>
</dl>
<h2 id="Methods" name="Methods">Methods</h2>
<p><em>No specific method; inherits methods from its parent, {{domxref("HTMLTableCellElement")}}, and {{domxref("HTMLElement")}}</em>.</p>
<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('HTML WHATWG', "tabular-data.html#the-table-element", "HTMLTableElement")}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>Adds the <code>sorted</code> property.</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', "tabular-data.html#the-table-element", "HTMLTableElement")}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>Initial definition.</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<div>
  {{CompatibilityTable}}</div>
<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>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoDesktop(1.0)}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td><code>sorted</code> {{experimental_inline}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</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>Firefox Mobile (Gecko)</th>
        <th>IE Phone</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatGeckoMobile(1.0)}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td><code>sorted</code> {{experimental_inline}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also">See also</h2>
<ul>
  <li>The HTML element implementing this interface: {{HTMLElement("th")}}.</li>
</ul>
<p>&nbsp;</p>
Revert to this revision