この記事は翻訳作業中です。
HTMLFieldSetElement インターフェイスは、<fieldset> 要素のレイアウトと表示を操作するための特別なプロパティとメソッドを (継承によって利用可能な通常の <fieldset> インターフェイスを超えて) 提供します。
<div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveAspectRatio="xMinYMin meet"><a xlink:href="https://developer.mozilla.org/ja/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="151" y2="25" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/ja/docs/Web/API/Node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Node</text></a><polyline points="226,25 236,20 236,30 226,25" stroke="#D4DDE4" fill="none"/><line x1="236" y1="25" x2="266" y2="25" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/ja/docs/Web/API/Element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">Element</text></a><polyline points="341,25 351,20 351,30 341,25" stroke="#D4DDE4" fill="none"/><line x1="351" y1="25" x2="381" y2="25" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/ja/docs/Web/API/HTMLElement" target="_top"><rect x="381" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="https://developer.mozilla.org/ja/docs/Web/API/HTMLFieldSetElement" target="_top"><rect x="301" y="65" width="190" height="50" fill="#F4F7F8" stroke="#D4DDE4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLFieldSetElement</text></a></svg></div>
a:hover text { fill: #0095DD; pointer-events: all;}
プロパティ
親の HTMLElement からプロパティを継承している。
HTMLFieldSetElement.disabled- A
Booleanreflecting thedisabledHTML attribute, indicating whether the user can interact with the control. HTMLFieldSetElement.elements読取専用- The elements belonging to this field set. The type of this property depends on the version of the spec that is implemented by the browser.
HTMLFieldSetElement.form読取専用- An
HTMLFormControlsCollectionorHTMLCollectionreferencing the containing form element, if this element is in a form.
If the field set is not a descendant of a form element, then the attribute can be the ID of any form element in the same document it is related to, or thenullvalue if none matches. HTMLFieldSetElement.name- A
DOMStringreflecting thenameHTML attribute, containing the name of the field set, used for submitting the form. HTMLFieldSetElement.type読取専用- The
DOMString"fieldset". HTMLFieldSetElement.validationMessage- A
DOMStringrepresenting a localized message that describes the validation constraints that the element does not satisfy (if any). This is the empty string if the element is not a candidate for constraint validation (willValidateisfalse), or it satisfies its constraints. HTMLFieldSetElement.validity- A
ValidityStaterepresenting the validity states that this element is in. HTMLFieldSetElement.willValidate- A
Booleanfalse, because<fieldset>objects are never candidates for constraint validation.
メソッド
親のHTMLElement からメソッドを継承します。
HTMLFieldSetElement.checkValidity()- Always returns
truebecause<fieldset>objects are never candidates for constraint validation. HTMLFieldSetElement.reportValidity()- Always returns
truebecause<fieldset>objects are never candidates for constraint validation. HTMLFieldSetElement.setCustomValidity()- Sets a custom validity message for the field set. If this message is not the empty string, then the field set is suffering from a custom validity error, and does not validate.
仕様
| 仕様書 | ステータス | コメント |
|---|---|---|
| HTML Living Standard HTMLFieldSetElement の定義 |
現行の標準 | |
| HTML 5.1 HTMLFieldSetElement の定義 |
勧告 | |
| HTML5 HTMLFieldSetElement の定義 |
勧告 | 次のプロパティが追加されました: disabled、elements、name、type、valdiationMessage、validity、およびwillValidate。次のメソッドが追加されました: checkValidity()、setCustomValidity()。 |
| Document Object Model (DOM) Level 2 HTML Specification HTMLFieldSetElement の定義 |
廃止された | 変更なし |
| Document Object Model (DOM) Level 1 Specification HTMLFieldSetElement の定義 |
廃止された | 初期定義 |
ブラウザの互換性
このページの互換性テーブルは構造化データから生成されます。データに貢献したい場合は https://github.com/mdn/browser-compat-data をチェックしてプルリクエストを送ってください。
Update compatibility data on GitHub
| デスクトップ | モバイル | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLFieldSetElement | Chrome 完全対応 あり | Edge 完全対応 あり | Firefox 完全対応 1 | IE 完全対応 あり | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
disabled | Chrome 完全対応 あり | Edge 完全対応 12 | Firefox 完全対応 1 | IE 完全対応 あり | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
elements | Chrome 完全対応 あり | Edge 完全対応 17 | Firefox 完全対応 1 | IE 未対応 なし | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
form | Chrome 完全対応 あり | Edge 完全対応 12 | Firefox 完全対応 1 | IE 完全対応 あり | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
name | Chrome 完全対応 あり | Edge 完全対応 14 | Firefox 完全対応 1 | IE 完全対応 あり | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
reportValidity | Chrome 完全対応 40 | Edge 完全対応 17 | Firefox 完全対応 49 | IE 未対応 なし | Opera 完全対応 27 | Safari 完全対応 10 | WebView Android 完全対応 40 | Chrome Android 完全対応 40 | Edge Mobile ? | Firefox Android 完全対応 64 | Opera Android 完全対応 46 | Safari iOS 完全対応 10 | Samsung Internet Android 完全対応 4.0 |
type | Chrome 完全対応 あり | Edge 完全対応 17 | Firefox 完全対応 1 | IE 完全対応 あり | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
validationMessage | Chrome 完全対応 あり | Edge 完全対応 12 | Firefox 完全対応 1 | IE 完全対応 あり | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
validity | Chrome 完全対応 あり | Edge 完全対応 12 | Firefox 完全対応 1 | IE 完全対応 あり | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
willValidate | Chrome 完全対応 あり | Edge 完全対応 12 | Firefox 完全対応 1 | IE 完全対応 あり | Opera 完全対応 あり | Safari 完全対応 あり | WebView Android 完全対応 あり | Chrome Android 完全対応 あり | Edge Mobile 完全対応 あり | Firefox Android 完全対応 4 | Opera Android ? | Safari iOS 完全対応 あり | Samsung Internet Android ? |
凡例
- 完全対応
- 完全対応
- 未対応
- 未対応
- 実装状況不明
- 実装状況不明
あわせて参照
- このインターフェイスを実装している HTML 要素:
<fieldset>