consistify
authorAnne van Kesteren <annevk@opera.com>
Thu, 12 Apr 2012 08:49:54 +0200
changeset 60 8c53a95647eb
parent 59 fb1a42b663e5
child 61 f0c81ac5c134
consistify
Overview.html
Overview.src.html
--- a/Overview.html	Thu Apr 12 08:43:04 2012 +0200
+++ b/Overview.html	Thu Apr 12 08:49:54 2012 +0200
@@ -1277,16 +1277,15 @@
     <a href="#request-entity-body">request entity body</a> and go to the next step.
 
     <p>Otherwise, let <var>encoding</var> be null, <var>mime type</var> be
-    null, and then follow these rules:</p>
+    null, and then follow these rules, depending on <var title="">data</var>:
 
     <dl class="switch">
 
-     <dt>If <var>data</var> is a <code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a></code></dt>
+     <dt><code class="external"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#5">ArrayBuffer</a></code>
      <dd><p>Let the <a href="#request-entity-body">request entity body</a> be the raw data
-     represented by <var>data</var>.</dd>
-
-     <dt>If <var>data</var> is a <code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a></code></dt>
-
+     represented by <var title="">data</var>.</dd>
+
+     <dt><code class="external"><a href="http://dev.w3.org/2006/webapi/FileAPI/#blob">Blob</a></code>
      <dd>
       <p>If the object's
       <code class="external" title="dom-Blob-type"><a href="http://dev.w3.org/2006/webapi/FileAPI/#dfn-type">type</a></code>
@@ -1298,16 +1297,15 @@
      </dd>
 
 
-     <dt>If <var>data</var> is a <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code>
-
+     <dt><a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-document" title="concept-document">document</a>
      <dd>
-      <p>Let <var>encoding</var> be the
+      <p>Let <var title="">encoding</var> be the
       <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#preferred-mime-name">preferred MIME name</a> of the
       <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-document-encoding" title="concept-document-encoding">encoding</a>
-      of <var>data</var>. If <var>encoding</var> is UTF-16 change it to
-      UTF-8.</p>
-
-      <p>If <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> is an
+      of <var title="">data</var>. If <var title="">encoding</var> is utf-16 change it to
+      utf-8.
+
+      <p>If <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-document" title="concept-document">document</a> is an
       <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#html-document">HTML document</a>, let
       <var>mime type</var> be "<code>text/html</code>", or let
       <var>mime type</var> be "<code>application/xml</code>" otherwise. Then
@@ -1315,7 +1313,7 @@
       <var>mime type</var>.
 
       <p><a class="external" href="http://html5.org/specs/dom-parsing.html#concept-serialize" title="concept-serialize">Serialize</a>
-      <var>data</var>, and let the <a href="#request-entity-body">request entity body</a> be the result,
+      <var title="">data</var>, and let the <a href="#request-entity-body">request entity body</a> be the result,
       <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-obtain-unicode" title="convert a DOMString to a sequence of Unicode characters">converted to Unicode</a>
       and encoded as <var>encoding</var>. Re-throw any exception this
       throws.</p>
@@ -1325,24 +1323,22 @@
       thrown.</p>
 
       <p class="note">Subsequent changes to the
-      <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> have no effect on what
-      is transferred.</p>
+      <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-document" title="concept-document">document</a> have
+      no effect on what is transferred.
      </dd>
 
-     <dt>If <var>data</var> is a string</dt>
-
+     <dt>a string
      <dd>
       <p>Let <var>encoding</var> be UTF-8.</p>
 
       <p>Let <var>mime type</var> be "<code>text/plain;charset=UTF-8</code>".</p>
 
-      <p>Let the <a href="#request-entity-body">request entity body</a> be <var>data</var>
+      <p>Let the <a href="#request-entity-body">request entity body</a> be <var title="">data</var>
       <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-obtain-unicode" title="convert a DOMString to a sequence of Unicode characters">converted to Unicode</a>
-      and encoded as UTF-8.</p>
+      and encoded as utf-8.</p>
      </dd>
 
-     <dt>If <var>data</var> is a <code><a href="#formdata">FormData</a></code></dt>
-
+     <dt><code><a href="#formdata">FormData</a></code>
      <dd>
       <p>Let the <a href="#request-entity-body">request entity body</a> be the result of running
       the
--- a/Overview.src.html	Thu Apr 12 08:43:04 2012 +0200
+++ b/Overview.src.html	Thu Apr 12 08:49:54 2012 +0200
@@ -1284,16 +1284,15 @@
     <span>request entity body</span> and go to the next step.
 
     <p>Otherwise, let <var>encoding</var> be null, <var>mime type</var> be
-    null, and then follow these rules:</p>
+    null, and then follow these rules, depending on <var title>data</var>:
 
     <dl class=switch>
 
-     <dt>If <var>data</var> is a <code data-anolis-spec=typedarray>ArrayBuffer</code></dt>
+     <dt><code data-anolis-spec=typedarray>ArrayBuffer</code>
      <dd><p>Let the <span>request entity body</span> be the raw data
-     represented by <var>data</var>.</p></dd>
-
-     <dt>If <var>data</var> is a <code data-anolis-spec=fileapi>Blob</code></dt>
-
+     represented by <var title>data</var>.</p></dd>
+
+     <dt><code data-anolis-spec=fileapi>Blob</code>
      <dd>
       <p>If the object's
       <code data-anolis-spec=fileapi title=dom-Blob-type>type</code>
@@ -1305,16 +1304,15 @@
      </dd>
 
 
-     <dt>If <var>data</var> is a <code data-anolis-spec=dom>Document</code>
-
+     <dt><span data-anolis-spec=dom title=concept-document>document</span>
      <dd>
-      <p>Let <var>encoding</var> be the
+      <p>Let <var title>encoding</var> be the
       <span data-anolis-spec=dom>preferred MIME name</span> of the
       <span data-anolis-spec=dom title=concept-document-encoding>encoding</span>
-      of <var>data</var>. If <var>encoding</var> is UTF-16 change it to
-      UTF-8.</p>
-
-      <p>If <code data-anolis-spec=dom>Document</code> is an
+      of <var title>data</var>. If <var title>encoding</var> is utf-16 change it to
+      utf-8.
+
+      <p>If <span data-anolis-spec=dom title=concept-document>document</span> is an
       <span data-anolis-spec=dom>HTML document</span>, let
       <var>mime type</var> be "<code>text/html</code>", or let
       <var>mime type</var> be "<code>application/xml</code>" otherwise. Then
@@ -1322,7 +1320,7 @@
       <var>mime type</var>.
 
       <p><span data-anolis-spec=domps title=concept-serialize>Serialize</span>
-      <var>data</var>, and let the <span>request entity body</span> be the result,
+      <var title>data</var>, and let the <span>request entity body</span> be the result,
       <span data-anolis-spec=webidl title="convert a DOMString to a sequence of Unicode characters">converted to Unicode</span>
       and encoded as <var>encoding</var>. Re-throw any exception this
       throws.</p>
@@ -1332,24 +1330,22 @@
       thrown.</p>
 
       <p class=note>Subsequent changes to the
-      <code data-anolis-spec=dom>Document</code> have no effect on what
-      is transferred.</p>
+      <span data-anolis-spec=dom title=concept-document>document</span> have
+      no effect on what is transferred.
      </dd>
 
-     <dt>If <var>data</var> is a string</dt>
-
+     <dt>a string
      <dd>
       <p>Let <var>encoding</var> be UTF-8.</p>
 
       <p>Let <var>mime type</var> be "<code>text/plain;charset=UTF-8</code>".</p>
 
-      <p>Let the <span>request entity body</span> be <var>data</var>
+      <p>Let the <span>request entity body</span> be <var title>data</var>
       <span data-anolis-spec=webidl title="convert a DOMString to a sequence of Unicode characters">converted to Unicode</span>
-      and encoded as UTF-8.</p>
+      and encoded as utf-8.</p>
      </dd>
 
-     <dt>If <var>data</var> is a <code>FormData</code></dt>
-
+     <dt><code>FormData</code>
      <dd>
       <p>Let the <span>request entity body</span> be the result of running
       the