web api interface
HTMLFieldSetElement
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.
Instance properties
Inherits properties from its parent, HTMLElement.
disabled- : A boolean value reflecting the
disabledHTML attribute, indicating whether the user can interact with the control.
- : A boolean value reflecting the
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.
formRead only- : 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.
- : An
name- : A string reflecting the
nameHTML 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.
- : A string reflecting the
typeRead only- : The string
"fieldset".
- : The string
validationMessageRead only- : A string 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 (
willValidateisfalse), or it satisfies its constraints.
- : A string 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 (
validityRead only- : A
ValidityStaterepresenting the validity states that this element is in.
- : A
willValidateRead only- : A boolean value
false, because<fieldset>objects are never candidates for constraint validation.
- : A boolean value
Instance methods
Inherits methods from its parent, HTMLElement.
checkValidity()- : Always returns
truebecause<fieldset>objects are never candidates for constraint validation.
- : Always returns
reportValidity()- : Always returns
truebecause<fieldset>objects are never candidates for constraint validation.
- : Always returns
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
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- The HTML element implementing this interface:
<fieldset>.