Bug 20611 - specify JWK encoding as UTF-8
authorMark Watson <watsonm@netflix.com>
Wed, 19 Feb 2014 08:55:38 -0800
changeset 114 66bec4453de5
parent 113 1ed0fb7da636
child 115 768a11dba263
Bug 20611 - specify JWK encoding as UTF-8
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Tue Feb 18 11:20:27 2014 -0800
+++ b/spec/Overview-WebCryptoAPI.xml	Wed Feb 19 08:55:38 2014 -0800
@@ -626,7 +626,13 @@
           </li>
           <li>
             <p>
-              Let <var>result</var> be the result of translating <var>data</var> into an internal
+              Let <var>json</var> be the unicode string that results from interpreting
+              <var>data</var> according to UTF-8.
+            </p>
+          </li>
+          <li>
+            <p>
+              Let <var>result</var> be the result of translating <var>json</var> into an internal
               object using the grammar specified in Section 15.12 of <a href="#ECMA-262">ECMA
               262</a>.
             </p>
@@ -4928,12 +4934,9 @@
                           </li>
                           <li>
                             <p>
-                              Let <var>data</var> be the UTF-8|UTF-16 encoding of
+                              Let <var>data</var> be the UTF-8 encoding of
                               <var>stringifiedJwk</var>.
                             </p>
-                            <div class="ednote">
-                            TODO: Decide whether this should be UTF-8 or UTF-16
-                            </div>
                           </li>
                         </ol>
                       </dd>
@@ -5446,12 +5449,9 @@
                           </li>
                           <li>
                             <p>
-                              Let <var>data</var> be the UTF-8|UTF-16 encoding of
+                              Let <var>data</var> be the UTF-8 encoding of
                               <var>stringifiedJwk</var>.
                             </p>
-                            <div class="ednote">
-                            TODO: Decide whether this should be UTF-8 or UTF-16
-                            </div>
                           </li>
                         </ol>
                       </dd>
@@ -6077,12 +6077,9 @@
                           </li>
                           <li>
                             <p>
-                              Let <var>data</var> be the UTF-8|UTF-16 encoding of
+                              Let <var>data</var> be the UTF-8 encoding of
                               <var>stringifiedJwk</var>.
                             </p>
-                            <div class="ednote">
-                            TODO: Decide whether this should be UTF-8 or UTF-16
-                            </div>
                           </li>
                         </ol>
                       </dd>
@@ -6560,12 +6557,9 @@
                           </li>
                           <li>
                             <p>
-                              Let <var>data</var> be the UTF-8|UTF-16 encoding of
+                              Let <var>data</var> be the UTF-8 encoding of
                               <var>stringifiedJwk</var>.
                             </p>
-                            <div class="ednote">
-                            TODO: Decide whether this should be UTF-8 or UTF-16
-                            </div>
                           </li>
                         </ol>
                       </dd>
--- a/spec/Overview.html	Tue Feb 18 11:20:27 2014 -0800
+++ b/spec/Overview.html	Wed Feb 19 08:55:38 2014 -0800
@@ -28,7 +28,7 @@
   <link rel="stylesheet" href="//www.w3.org/StyleSheets/TR/W3C-ED" type="text/css" /></head>
 
   <body>
-    <div class="head"><div><a href="http://www.w3.org/"><img src="//www.w3.org/Icons/w3c_home" width="72" height="48" alt="W3C" /></a></div><h1>Web Cryptography API</h1><h2>W3C Editor’s Draft <em>18 February 2014</em></h2><dl><dt>Latest Editor’s Draft:</dt><dd><a href="http://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html">http://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html</a></dd><dt>Latest Published Version:</dt><dd><a href="http://www.w3.org/TR/WebCryptoAPI/">http://www.w3.org/TR/WebCryptoAPI/</a></dd><dt>Previous Version(s):</dt><dd><a href="https://dvcs.w3.org/hg/webcrypto-api/raw-file/0fe9b34c13fb/spec/Overview.html">https://dvcs.w3.org/hg/webcrypto-api/raw-file/0fe9b34c13fb/spec/Overview.html</a></dd><dt>Editors:</dt><dd><a href="http://www.google.com/">Ryan Sleevi</a>, Google, Inc. &lt;[email protected]&gt;</dd><dd><a href="http://www.netflix.com/">Mark Watson</a>, Netflix &lt;[email protected]&gt;</dd><dt>Participate:</dt><dd><p>Send feedback to <a href="mailto:[email protected]?subject=%5BWebCryptoAPI%5D">[email protected]</a> (<a href="http://lists.w3.org/Archives/Public/public-webcrypto/">archives</a>), or <a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=Web%20Cryptography&amp;component=Web%20Cryptography%20API%20Document">file a bug</a> 
+    <div class="head"><div><a href="http://www.w3.org/"><img src="//www.w3.org/Icons/w3c_home" width="72" height="48" alt="W3C" /></a></div><h1>Web Cryptography API</h1><h2>W3C Editor’s Draft <em>19 February 2014</em></h2><dl><dt>Latest Editor’s Draft:</dt><dd><a href="http://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html">http://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html</a></dd><dt>Latest Published Version:</dt><dd><a href="http://www.w3.org/TR/WebCryptoAPI/">http://www.w3.org/TR/WebCryptoAPI/</a></dd><dt>Previous Version(s):</dt><dd><a href="https://dvcs.w3.org/hg/webcrypto-api/raw-file/0fe9b34c13fb/spec/Overview.html">https://dvcs.w3.org/hg/webcrypto-api/raw-file/0fe9b34c13fb/spec/Overview.html</a></dd><dt>Editors:</dt><dd><a href="http://www.google.com/">Ryan Sleevi</a>, Google, Inc. &lt;[email protected]&gt;</dd><dd><a href="http://www.netflix.com/">Mark Watson</a>, Netflix &lt;[email protected]&gt;</dd><dt>Participate:</dt><dd><p>Send feedback to <a href="mailto:[email protected]?subject=%5BWebCryptoAPI%5D">[email protected]</a> (<a href="http://lists.w3.org/Archives/Public/public-webcrypto/">archives</a>), or <a href="https://www.w3.org/Bugs/Public/enter_bug.cgi?product=Web%20Cryptography&amp;component=Web%20Cryptography%20API%20Document">file a bug</a> 
     (see <a href="https://www.w3.org/Bugs/Public/buglist.cgi?product=Web%20Cryptography&amp;component=Web%20Cryptography%20API%20Document&amp;resolution=---">existing bugs</a>).</p></dd></dl><p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; view <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>&reg;</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.org/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.</p></div><hr />
 
     <div class="section">
@@ -44,7 +44,7 @@
         communications.
       </p>
   
-      <div class="ednote"><div class="ednoteHeader">Editorial note</div><p>There are 32 further editorial notes in the document.</p></div>
+      <div class="ednote"><div class="ednoteHeader">Editorial note</div><p>There are 28 further editorial notes in the document.</p></div>
     </div>
 
     <div class="section">
@@ -56,7 +56,7 @@
         report can be found in the <a href="http://www.w3.org/TR/">W3C technical
           reports index</a> at http://www.w3.org/TR/.
       </em></p><p>
-        This document is the 18 February 2014 <b>Editor’s Draft</b> of the
+        This document is the 19 February 2014 <b>Editor’s Draft</b> of the
         <cite>Web Cryptography API</cite> specification.
       
       Please send comments about this document to
@@ -634,7 +634,13 @@
           </li>
           <li>
             <p>
-              Let <var>result</var> be the result of translating <var>data</var> into an internal
+              Let <var>json</var> be the unicode string that results from interpreting
+              <var>data</var> according to UTF-8.
+            </p>
+          </li>
+          <li>
+            <p>
+              Let <var>result</var> be the result of translating <var>json</var> into an internal
               object using the grammar specified in Section 15.12 of <a href="#ECMA-262">ECMA
               262</a>.
             </p>
@@ -4901,12 +4907,9 @@
                           </li>
                           <li>
                             <p>
-                              Let <var>data</var> be the UTF-8|UTF-16 encoding of
+                              Let <var>data</var> be the UTF-8 encoding of
                               <var>stringifiedJwk</var>.
                             </p>
-                            <div class="ednote"><div class="ednoteHeader">Editorial note</div>
-                            TODO: Decide whether this should be UTF-8 or UTF-16
-                            </div>
                           </li>
                         </ol>
                       </dd>
@@ -5419,12 +5422,9 @@
                           </li>
                           <li>
                             <p>
-                              Let <var>data</var> be the UTF-8|UTF-16 encoding of
+                              Let <var>data</var> be the UTF-8 encoding of
                               <var>stringifiedJwk</var>.
                             </p>
-                            <div class="ednote"><div class="ednoteHeader">Editorial note</div>
-                            TODO: Decide whether this should be UTF-8 or UTF-16
-                            </div>
                           </li>
                         </ol>
                       </dd>
@@ -6050,12 +6050,9 @@
                           </li>
                           <li>
                             <p>
-                              Let <var>data</var> be the UTF-8|UTF-16 encoding of
+                              Let <var>data</var> be the UTF-8 encoding of
                               <var>stringifiedJwk</var>.
                             </p>
-                            <div class="ednote"><div class="ednoteHeader">Editorial note</div>
-                            TODO: Decide whether this should be UTF-8 or UTF-16
-                            </div>
                           </li>
                         </ol>
                       </dd>
@@ -6533,12 +6530,9 @@
                           </li>
                           <li>
                             <p>
-                              Let <var>data</var> be the UTF-8|UTF-16 encoding of
+                              Let <var>data</var> be the UTF-8 encoding of
                               <var>stringifiedJwk</var>.
                             </p>
-                            <div class="ednote"><div class="ednoteHeader">Editorial note</div>
-                            TODO: Decide whether this should be UTF-8 or UTF-16
-                            </div>
                           </li>
                         </ol>
                       </dd>