[Bug 15229] New: How to use @required on dependent elements with no-Javascript clients


           Summary: How to use @required on dependent elements with
                    no-Javascript clients
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: everett@zufelt.ca
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,

When building forms with required dependent elements, there is no way to modify
@required on dependent elements without Javascript.


<label><input type="checkbox" />Use shipping address for billing</label>
<!-- elements dependent on checkbox not being checked for server-side
validation -->
<label>Billing address 1:<input type="text" required /></label>
<label>Billing address 2:<input type="text" required /></label>

In a Javascript implementation the billing address fields would be hidden
(display:none) and could be set to @disabled, making them imutable and
therefore not failing the @required constraint validation.

Other than dramatically altering server-side processing mechanisms, and UIs,
how can @required be applied to dependent elements in no-JS clients?

See Drupal implementation comments starting at comment #45 at

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Friday, 16 December 2011 14:17:44 UTC