<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15229</bug_id>
          
          <creation_ts>2011-12-16 14:07:03 +0000</creation_ts>
          <short_desc>How to use @required on dependent elements with no-Javascript clients</short_desc>
          <delta_ts>2012-09-14 12:13:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML.next</product>
          <component>default</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Everett Zufelt">everett</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>everett</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>plh</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61659</commentid>
    <comment_count>0</comment_count>
    <who name="Everett Zufelt">everett</who>
    <bug_when>2011-12-16 14:07:03 +0000</bug_when>
    <thetext>When building forms with required dependent elements, there is no way to modify @required on dependent elements without Javascript.

Example:

&lt;form&gt;
&lt;label&gt;&lt;input type=&quot;checkbox&quot; /&gt;Use shipping address for billing&lt;/label&gt;
&lt;!-- elements dependent on checkbox not being checked for server-side validation --&gt;
&lt;label&gt;Billing address 1:&lt;input type=&quot;text&quot; required /&gt;&lt;/label&gt;
&lt;label&gt;Billing address 2:&lt;input type=&quot;text&quot; required /&gt;&lt;/label&gt;
...
&lt;/form&gt;

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63254</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-01-28 22:09:26 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: none yet
Rationale: Yeah, this is a known limitation. It&apos;s on the list of things to consider adding once browsers have implemented what we have so far.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>