Skip to content
Permalink
Browse files

[] (0) Change how <keygen> is made optional so that support is detect…

…able from script.

git-svn-id: http://svn.whatwg.org/webapps@3868 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Sep 16, 2009
1 parent 2e94aa6 commit f3eddbcef61ce496823243c0b541b3a520bda67e
Showing with 27 additions and 21 deletions.
  1. +13 −10 index
  2. +14 −11 source
23 index
attribute is an <a href=#enumerated-attribute>enumerated attribute</a>. 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="">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
<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>

</dd>

--><dt>If the <code title=attr-keygen-keytype><a href=#attr-keygen-keytype>keytype</a></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>


</dd>

<dt>Otherwise, the <code title=attr-keygen-keytype><a href=#attr-keygen-keytype>keytype</a></code> attribute is in the <i title="">unknown</i> state, or the user agent does not support
the selected key type</dt>
<dt>Otherwise, the <code title=attr-keygen-keytype><a href=#attr-keygen-keytype>keytype</a></code> attribute is in the <i title="">unknown</i> state</dt>

<dd>


</dl><div class=impl>

<p>The <dfn id=dom-keygen-challenge title=dom-keygen-challenge><code>challenge</code></dfn> and <dfn id=dom-keygen-keytype title=dom-keygen-keytype><code>keytype</code></dfn> IDL attributes
must <a href=#reflect>reflect</a> the respective content attributes of the
<p>The <dfn id=dom-keygen-challenge title=dom-keygen-challenge><code>challenge</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attributes of the
same name.</p>

<p>The <dfn id=dom-keygen-keytype title=dom-keygen-keytype><code>keytype</code></dfn>
IDL attribute must <a href=#reflect>reflect</a> the content attributes of
the same name, <a href=#limited-to-only-known-values>limited to only known values</a>.</p>

<p>The <dfn id=dom-keygen-type title=dom-keygen-type><code>type</code></dfn> IDL
attribute must return the value "<code title="">keygen</code>".</p>

25 source
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

<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
<!-- 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>

-->

<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>


<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>

<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>

0 comments on commit f3eddbc

Please sign in to comment.
You can’t perform that action at this time.