Skip to content

Document readonly attribute on <fieldset> #44045

@teoeter

Description

@teoeter

Spec PR: whatwg/html#12424
Spec issue: whatwg/html#10293
WPT tests (tentative): web-platform-tests/wpt#59741

The HTML spec is adding a readonly content attribute to <fieldset>
that propagates a read-only state to descendant form controls
(parallel to the existing disabled attribute).

Pages to update once at least one engine ships:

  • Web/HTML/Element/fieldset — add readonly to the attributes table
    alongside disabled, with a usage example
  • Web/API/HTMLFieldSetElement — add the readOnly IDL property
  • Web/API/HTMLElement#instance_methods (custom elements) — add
    formReadonlyCallback to the form-associated custom element
    lifecycle callbacks list, alongside formDisabledCallback
  • BCD entries for all of the above

Affected descendants are: <input> in states that support readonly
(text, search, url, tel, email, password, date, month, week, time,
datetime-local, number), <textarea>, and form-associated custom
elements. Descendants of the first <legend> child are exempt.

Filing now so it's tracked; no action needed until shipping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions