HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3868Change how <keygen> is made optional so that support is detectable from script.2009-09-16 00:44
@@ -41274,38 +41274,41 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
 
   <p>The <dfn
   title="attr-keygen-challenge"><code>challenge</code></dfn> attribute
   may be specified. Its value will be packaged with the submitted
   key.</p>
 
   <p>The <dfn title="attr-keygen-keytype"><code>keytype</code></dfn>
   attribute is an <span>enumerated attribute</span>. The following
   table lists the keywords and states for the attribute &mdash; the
   keywords in the left column map to the states listed in the cell in
-  the second column on the same row as the keyword.</p>
+  the second column on the same row as the keyword. User agents are
+  not required to support these values, and must only recognise values
+  whose corresponding algorithms they support.</p>
 
   <table>
    <thead> <tr> <th> Keyword <th> State
    <tbody>
     <tr>
      <td> <code title="">rsa</code>
      <td> <i title="">RSA</i>
 <!-- v2 (see below)
     <tr>
      <td> <code title="">ec</code>
      <td> <i title="">EC</i>
 -->
   </table>
 
   <p>The <i>invalid value default</i> state is the <i
   title="">unknown</i> state. The <i>missing value default</i> state
-  is the <i title="">RSA</i> state.</p>
+  is the <i title="">RSA</i> state, if it is supported, or the <i
+  title="">unknown</i> state otherwise.</p>
 
   <p class="note">This specification does not specify what key types
   user agents are to support &mdash; it is possible for a user agent
   to not support any key types at all.</p>
 
   <div class="impl">
 
   <p>The user agent may expose a user interface for each
   <code>keygen</code> element to allow the user to configure settings
   of the element's key pair generator, e.g. the key length.</p>
@@ -41321,52 +41324,49 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
 
    <li>
 
     <p>Use the appropriate step from the following list:</p>
 
     <dl class="switch">
 
      <!-- v2 (see above)
 
      <dt>If the <code title="attr-keygen-keytype">keytype</code>
-     attribute is in the <i title="">EC</i> state and the user agent
-     supports an EC signature algorithm</dt>
+     attribute is in the <i title="">EC</i> state</dt>
 
      <dd>
 
       <p>...
 
       http://www.mail-archive.com/dev-tech-crypto@lists.mozilla.org/msg05902.html
 
      </dd>
 
      -->
 
      <dt>If the <code title="attr-keygen-keytype">keytype</code>
-     attribute is in the <i title="">RSA</i> state, and the user agent
-     supports an RSA signature algorithm</dt>
+     attribute is in the <i title="">RSA</i> state</dt>
 
      <dd>
 
       <p>Generate an RSA key pair using the settings given by the
       user, if appropriate.</p>
 
       <p>Select an RSA signature algorithm from those listed in
       section 2.2.1 ("RSA Signature Algorithm") of RFC 3279. <a
       href="#refsRFC3279">[RFC3279]</a></p>
 
      </dd>
 
      <dt>Otherwise, the <code
      title="attr-keygen-keytype">keytype</code> attribute is in the <i
-     title="">unknown</i> state, or the user agent does not support
-     the selected key type</dt>
+     title="">unknown</i> state</dt>
 
      <dd>
 
       <p>The given key type is not supported. Return the empty string
       and abort this algorithm.</p>
 
      </dd>
 
     </dl>
 
@@ -41506,25 +41506,28 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
 
     <p>Returns the string "<code title="">keygen</code>".</p>
 
    </dd>
 
   </dl>
 
   <div class="impl">
 
   <p>The <dfn
-  title="dom-keygen-challenge"><code>challenge</code></dfn> and <dfn
-  title="dom-keygen-keytype"><code>keytype</code></dfn> IDL attributes
-  must <span>reflect</span> the respective content attributes of the
+  title="dom-keygen-challenge"><code>challenge</code></dfn> IDL
+  attribute must <span>reflect</span> the content attributes of the
   same name.</p>
 
+  <p>The <dfn title="dom-keygen-keytype"><code>keytype</code></dfn>
+  IDL attribute must <span>reflect</span> the content attributes of
+  the same name, <span>limited to only known values</span>.</p>
+
   <p>The <dfn title="dom-keygen-type"><code>type</code></dfn> IDL
   attribute must return the value "<code title="">keygen</code>".</p>
 
   <p>The <code title="dom-cva-willValidate">willValidate</code>, <code
   title="dom-cva-validity">validity</code>, and <code
   title="dom-cva-validationMessage">validationMessage</code>
   attributes, and the <code
   title="dom-cva-checkValidatity">checkValidity()</code> and <code
   title="dom-cva-setCustomValidity">setCustomValidity()</code>
   methods, are part of the <span>constraint validation API</span>. The

|