HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3843Make <keygen>'s crypto bits optional.2009-09-14 10:33
@@ -41328,26 +41328,35 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   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>
 
   <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>
 
+  <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>
 
   <p>The <span title="concept-form-reset-control">reset
   algorithm</span> for <code>keygen</code> elements is to set these
   various configuration settings back to their defaults.</p>
 
@@ -41355,52 +41364,55 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   string returned from the following algorithm:</p>
 
   <ol>
 
    <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</dt>
+     attribute is in the <i title="">EC</i> state and the user agent
+     supports an EC signature algorithm</dt>
 
      <dd>
 
       <p>...
 
-     </dd>
+      http://www.mail-archive.com/dev-tech-crypto@lists.mozilla.org/msg05902.html
 
-     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</dt>
+     attribute is in the <i title="">RSA</i> state, and the user agent
+     supports an RSA signature algorithm</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</dt>
+     title="">unknown</i> state, or the user agent does not support
+     the selected key type</dt>
 
      <dd>
 
       <p>The given key type is not supported. Return the empty string
       and abort this algorithm.</p>
 
      </dd>
 
     </dl>
 

|