- From: <bugzilla@jessica.w3.org>
- Date: Fri, 16 Dec 2011 14:07:08 +0000
- To: public-html@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15229
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,
public-html@w3.org
When building forms with required dependent elements, there is no way to modify
@required on dependent elements without Javascript.
Example:
<form>
<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>
...
</form>
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
http://drupal.org/node/1174938#comment-5366572/node/1174938
--
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