Element: ariaRowSpan プロパティ
Baseline 2023Newly available
Since October 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
ariaRowSpan
は Element
インターフェイスのプロパティで、表、グリッド、ツリーグリッド内のセルやグリッドセルにまたがる行数を定義する aria-rowspan
属性の値を反映します。
値
整数の入った文字列です。
例
この例では、spanning-heading
という ID を持つ要素の aria-rowspan
属性は "3" に設定されています。ariaRowSpan
を使用して、値を "2" に更新します。
html
<table>
<tr>
<th id="spanning-heading" rowspan="3" aria-rowspan="3">Spanning heading</th>
<th>Heading</th>
</tr>
<tr>
<td>One</td>
</tr>
<tr>
<td>Two</td>
</tr>
</table>
js
let el = document.getElementById("spanning-heading");
console.log(el.ariaRowSpan);
el.ariaRowSpan = "2";
console.log(el.ariaRowSpan);
仕様書
Specification |
---|
Accessible Rich Internet Applications (WAI-ARIA) # dom-ariamixin-ariarowspan |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ariaRowSpan |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.