clarify mime type requirements https://www.w3.org/Bugs/Public/show_bug.cgi?id=16301
authorAnne van Kesteren <annevk@opera.com>
Mon, 26 Mar 2012 18:21:02 +0100
changeset 57 2ba0be2d31cd
parent 56 ba9735a82582
child 58 0746d35a2068
clarify mime type requirements https://www.w3.org/Bugs/Public/show_bug.cgi?id=16301
Overview.html
Overview.src.html
--- a/Overview.html	Mon Mar 26 16:55:12 2012 +0100
+++ b/Overview.html	Mon Mar 26 18:21:02 2012 +0100
@@ -1316,11 +1316,12 @@
       of <var>data</var>. If <var>encoding</var> is UTF-16 change it to
       UTF-8.</p>
 
-      <p>Let <var>mime type</var> be "<code>application/xml</code>" or
-      "<code>text/html</code>" if
-      <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> is an
-      <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#html-document">HTML document</a>, followed by
-      "<code>;charset=</code>", followed by <var>encoding</var>.</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
+      <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
+      append "<code>;charset=<var>encoding</var></code>" to
+      <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,
--- a/Overview.src.html	Mon Mar 26 16:55:12 2012 +0100
+++ b/Overview.src.html	Mon Mar 26 18:21:02 2012 +0100
@@ -1323,11 +1323,12 @@
       of <var>data</var>. If <var>encoding</var> is UTF-16 change it to
       UTF-8.</p>
 
-      <p>Let <var>mime type</var> be "<code>application/xml</code>" or
-      "<code>text/html</code>" if
-      <code data-anolis-spec=dom>Document</code> is an
-      <span data-anolis-spec=dom>HTML document</span>, followed by
-      "<code>;charset=</code>", followed by <var>encoding</var>.</p>
+      <p>If <code data-anolis-spec=dom>Document</code> 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
+      append "<code>;charset=<var>encoding</var></code>" to
+      <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,