This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Originally requested in https://bugzilla.mozilla.org/show_bug.cgi?id=596515 and forked to https://bugzilla.mozilla.org/show_bug.cgi?id=717181. It would be great for authors to know when a fieldset contains an invalid element. It would allow more high level messages. For example, a fieldset containing all fields required for an address could have a UI poping up saying "The address is invalid" if an element inside the fieldset happens to be invalid.
Note that we could simply make :invalid pseudo-class matches like we are currently doing for forms.
Do you just want me to add the following to the definition of ":invalid"?: fieldset elements that have of one or more descendant elements that themselves are candidates for constraint validation but do not satisfy their constraints (Is it too late to make :invalid match <fieldset>?)
(In reply to comment #2) > Do you just want me to add the following to the definition of ":invalid"?: > > fieldset elements that have of one or more descendant elements that > themselves are candidates for constraint validation but do not > satisfy their constraints > > (Is it too late to make :invalid match <fieldset>?) I would be willing to have that implemented in Gecko.
Ok, let's try that then.
Checked in as WHATWG revision r7823. Check-in comment: Make :invalid match <fieldset>s that contain invalid controls. http://html5.org/tools/web-apps-tracker?from=7822&to=7823