Web/API/HTMLFieldSetElement

From Get docs


The HTMLFieldSetElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements.

Properties

Inherits properties from its parent, HTMLElement.

HTMLFieldSetElement.disabled
A Boolean reflecting the disabled HTML attribute, indicating whether the user can interact with the control.
HTMLFieldSetElement.elementsRead only
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.formRead only
An HTMLFormControlsCollection or HTMLCollection referencing 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 the null value if none matches.
HTMLFieldSetElement.name
A DOMString reflecting the name HTML attribute, containing the name of the field set. This can be used when accessing the field set in JavaScript. It is not part of the data which is sent to the server.
HTMLFieldSetElement.typeRead only
The DOMString "fieldset".
HTMLFieldSetElement.validationMessage
A DOMString representing 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 (willValidate is false), or it satisfies its constraints.
HTMLFieldSetElement.validity
A ValidityState representing the validity states that this element is in.
HTMLFieldSetElement.willValidate
A Boolean false, because <fieldset> objects are never candidates for constraint validation.

Methods

Inherits methods from its parent, HTMLElement.

HTMLFieldSetElement.checkValidity()
Always returns true because <fieldset> objects are never candidates for constraint validation.
HTMLFieldSetElement.reportValidity()
Always returns true because <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.

Specifications

Specification Status Comment
HTML Living StandardThe definition of 'HTMLFieldSetElement' in that specification. Living Standard
HTML 5.1The definition of 'HTMLFieldSetElement' in that specification. Recommendation
HTML5The definition of 'HTMLFieldSetElement' in that specification. Recommendation The following properties have been added: disabled, elements, name, type, valdiationMessage, validity, and willValidate.

The following methods have been added: checkValidity(), setCustomValidity().

Document Object Model (DOM) Level 2 HTML SpecificationThe definition of 'HTMLFieldSetElement' in that specification. Obsolete No change
Document Object Model (DOM) Level 1 SpecificationThe definition of 'HTMLFieldSetElement' in that specification. Obsolete Initial definition

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
HTMLFieldSetElement Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support 1

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

disabled Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support 1

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

elements Chrome

Full support Yes

Edge

Full support 17

Firefox

Full support 1

IE

No support No

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

form Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support 1

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

name Chrome

Full support Yes

Edge

Full support 14

Firefox

Full support 1

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

reportValidity Chrome

Full support 40

Edge

Full support 17

Firefox

Full support 49

IE

No support No

Opera

Full support 27

Safari

Full support 10

WebView Android

Full support 40

Chrome Android

Full support 40

Firefox Android

Full support 64

Opera Android

Full support 27

Safari iOS

Full support 10

Samsung Internet Android

Full support 4.0

type Chrome

Full support Yes

Edge

Full support 17

Firefox

Full support 1

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

validationMessage Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support 1

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

validity Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support 1

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

willValidate Chrome

Full support Yes

Edge

Full support 12

Firefox

Full support 1

IE

Full support Yes

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support 4

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support
No support  
No support


See also

  • The HTML element implementing this interface: <fieldset>.