[EME] Add references to Key IDs format specification.
authorDavid Dorwin <ddorwin@google.com>
Fri, 30 May 2014 18:00:19 -0700
changeset 332 d5f6d0bf783d
parent 331 6fc9809793af
child 333 f1578a4341e7
[EME] Add references to Key IDs format specification.
encrypted-media/encrypted-media.js
encrypted-media/keyids-format-respec.html
encrypted-media/keyids-format.html
--- a/encrypted-media/encrypted-media.js	Fri May 30 17:41:19 2014 -0700
+++ b/encrypted-media/encrypted-media.js	Fri May 30 18:00:19 2014 -0700
@@ -30,6 +30,10 @@
     df.appendChild($("<code/>").wrapInner($("<a/>").attr({href: HTML_spec_url + "#" + id}).text(text))[0]);
   }
 
+  function encodingapi_helper(doc, df, id, text) {
+    link_helper(doc, df, 'http://www.w3.org/TR/encoding/#' + id, text);
+  }
+
   function webappapis_helper(doc, df, id, text) {
     link_helper(doc, df, 'http://www.w3.org/TR/html5/webappapis.html#' + id, text);
   }
@@ -105,6 +109,8 @@
   var emeDefinitions = {
     'eme-spec': { func: link_helper, fragment: '#', link_text: 'Encrypted Media Extensions', },
 
+    'interface-textencoder': { func: encodingapi_helper, fragment: 'interface-textencoder', link_text: 'TextEncoder interface',  },
+    
     'eventdfn': { func: eventdfn_helper, fragment: '', link_text: '', },
 
     'videoref': { func: videoref_helper, fragment: '', link_text: '', },
--- a/encrypted-media/keyids-format-respec.html	Fri May 30 17:41:19 2014 -0700
+++ b/encrypted-media/keyids-format-respec.html	Fri May 30 18:00:19 2014 -0700
@@ -4,6 +4,7 @@
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     <title>Key IDs Initialization Data</title>
     <script src="https://www.w3.org/Tools/respec/respec-w3c-common" class="remove"></script>
+    <script src="encrypted-media.js" class="remove"></script>
     <script class="remove">
       var respecConfig = {
       // specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
@@ -29,6 +30,8 @@
       company: "Netflix Inc.", companyURL: "http://www.netflix.com/" },
       ],
 
+      emeUnusedGroupNameExcludeList: ["encrypted-media"],
+
       // name of the WG
       wg:           "HTML Working Group",
 
@@ -49,9 +52,13 @@
 
       scheme: "https",
 
+      preProcess: [ encryptedMediaPreProcessor ],
+
       // Empty definitions for objects declared in the document are here to
       // prevent error messages from being displayed for references to these objects.
       definitionMap: {},
+
+      postProcess: [ encryptedMediaPostProcessor ],
       };
     </script>
   </head>
@@ -78,8 +85,8 @@
       
       <p class="note">See <a href="encrypted-media.html#using-base64url"> Using base64url</a>.</p>
 
-      <p>When passed to the <code><a href="encrypted-media.html#dom-update">update()</a></code> method as the Uint8Array <var>response</var> parameter, the JSON string must be encoded in utf-8 as specified in the <a href="http://www.w3.org/TR/encoding/">Encoding</a> specification.
-        Applications may encode the JSON string using the <a href="http://www.w3.org/TR/encoding/#interface-textencoder">TextEncoder interface</a>.
+      <p>When passed to the <code><a href="encrypted-media.html#dom-update">update()</a></code> method as the Uint8Array <var>response</var> parameter, the JSON string must be encoded in UTF-8 as specified in the Encoding specification [[!encoding]].
+        Applications may encode the JSON string using the <a def-id="interface-textencoder"></a> <a def-id="interface-textencoder"></a> [[!encoding]].
       </p>
   
       <section class="informative">
--- a/encrypted-media/keyids-format.html	Fri May 30 17:41:19 2014 -0700
+++ b/encrypted-media/keyids-format.html	Fri May 30 18:00:19 2014 -0700
@@ -5,6 +5,7 @@
     <title>Key IDs Initialization Data</title>
     
     
+    
   <style>/*****************************************************************
  * ReSpec 3 CSS
  * Robin Berjon - http://berjon.com/
@@ -200,7 +201,7 @@
   </p>
   <h1 class="title p-name" id="title" property="dcterms:title">Key IDs Initialization Data</h1>
   
-  <h2 property="dcterms:issued" datatype="xsd:dateTime" content="2014-05-31T04:51:08.000Z" id="w3c-editor-s-draft-30-may-2014"><abbr title="World Wide Web Consortium">W3C</abbr> Editor's Draft <time class="dt-published" datetime="2014-05-30">30 May 2014</time></h2>
+  <h2 property="dcterms:issued" datatype="xsd:dateTime" content="2014-05-31T06:59:12.000Z" id="w3c-editor-s-draft-30-may-2014"><abbr title="World Wide Web Consortium">W3C</abbr> Editor's Draft <time class="dt-published" datetime="2014-05-30">30 May 2014</time></h2>
   <dl>
     
       <dt>This version:</dt>
@@ -329,7 +330,7 @@
       
     
   
-</section><section id="toc"><h2 class="introductory" aria-level="1" role="heading" id="h2_toc">Table of Contents</h2><ul class="toc" role="directory" id="respecContents"><li class="tocline"><a href="#init-data" class="tocxref"><span class="secno">1. </span>Initialization Data Format</a><ul class="toc"><li class="tocline"><a href="#example" class="tocxref"><span class="secno">1.1 </span>Example</a></li></ul></li></ul></section>
+</section><section id="toc"><h2 class="introductory" aria-level="1" role="heading" id="h2_toc">Table of Contents</h2><ul class="toc" role="directory" id="respecContents"><li class="tocline"><a href="#init-data" class="tocxref"><span class="secno">1. </span>Initialization Data Format</a><ul class="toc"><li class="tocline"><a href="#example" class="tocxref"><span class="secno">1.1 </span>Example</a></li></ul></li><li class="tocline"><a href="#references" class="tocxref"><span class="secno">A. </span>References</a><ul class="toc"><li class="tocline"><a href="#normative-references" class="tocxref"><span class="secno">A.1 </span>Normative references</a></li></ul></li></ul></section>
   
     
   
@@ -343,8 +344,8 @@
       
       <div class="note"><div class="note-title" aria-level="2" role="heading" id="h_note_1"><span>Note</span></div><p class="">See <a href="encrypted-media.html#using-base64url"> Using base64url</a>.</p></div>
 
-      <p>When passed to the <code><a href="encrypted-media.html#dom-update">update()</a></code> method as the Uint8Array <var>response</var> parameter, the JSON string must be encoded in utf-8 as specified in the <a href="http://www.w3.org/TR/encoding/">Encoding</a> specification.
-        Applications may encode the JSON string using the <a href="http://www.w3.org/TR/encoding/#interface-textencoder">TextEncoder interface</a>.
+      <p>When passed to the <code><a href="encrypted-media.html#dom-update">update()</a></code> method as the Uint8Array <var>response</var> parameter, the JSON string must be encoded in UTF-8 as specified in the Encoding specification [<cite><a class="bibref" href="#bib-encoding">encoding</a></cite>].
+        Applications may encode the JSON string using the <a href="http://www.w3.org/TR/encoding/#interface-textencoder">TextEncoder interface</a> [<cite><a class="bibref" href="#bib-encoding">encoding</a></cite>].
       </p>
   
       <section class="informative" id="example">
@@ -362,4 +363,5 @@
     </section>
   
 
-</body></html>
\ No newline at end of file
+<section id="references" class="appendix" typeof="bibo:Chapter" resource="#references" rel="bibo:Chapter"><!--OddPage--><h2 aria-level="1" role="heading" id="h2_references"><span class="secno">A. </span>References</h2><section id="normative-references" typeof="bibo:Chapter" resource="#normative-references" rel="bibo:Chapter"><h3 aria-level="2" role="heading" id="h3_normative-references"><span class="secno">A.1 </span>Normative references</h3><dl class="bibliography" about=""><dt id="bib-encoding">[encoding]</dt><dd rel="dcterms:requires">Anne van Kesteren; Joshua Bell; Addison Phillips. <a href="http://www.w3.org/TR/encoding/"><cite>Encoding</cite></a>. 28 January 2014. W3C Working Draft. URL: <a href="http://www.w3.org/TR/encoding/">http://www.w3.org/TR/encoding/</a>
+</dd></dl></section></section></body></html>
\ No newline at end of file