HTML5 JS API Index > DOM Tutorials & Specs
The fieldset element represents a set of form controls optionally
grouped under a common name.
- The disabled IDL attribute must
reflect the content attribute of the same name.
- The elements IDL attribute must return an
HTMLFormControlsCollection rooted at the fieldset element, whose filter
matches listed elements.
- Reassociateable form-associated elements have a form
IDL attribute, which, on getting, must return the element's form owner, or null if
there isn't one.
- The name IDL attribute must reflect
the name content attribute.
- The type IDL attribute must return the string
- The validationMessage attribute must
return the empty string if the element is not a candidate for constraint validation
or if it is one but it satisfies its constraints; otherwise,
it must return a suitably localized message that the user agent would show the user if this were
the only form control with a validity constraint problem.
- The validity attribute must return a
ValidityState object that represents the validity states of the element. This object is live, and the same object must be returned each time the element's
validity attribute is retrieved.
- The willValidate attribute must return
true if an element is a candidate for constraint validation, and false otherwise
(i.e. false if any conditions are barring it from
- When the checkValidity() method is
invoked, if the element is a candidate for constraint validation and does not satisfy its constraints, the user agent must fire a simple
event named invalid that is cancelable (but in this case
has no default action) at the element and return false.
- When the reportValidity() method is
invoked, if the element is a candidate for constraint validation and does not satisfy its constraints, the user agent must: fire a simple
event named invalid that is cancelable at the element,
and if that event is not canceled, report the problems with the constraints of that element to the
user; then, return false.
- setCustomValidity(DOMString error)
- The setCustomValidity(message), when invoked, must set the custom validity error
message to the value of the given message argument.