clarify mime type requirements https://www.w3.org/Bugs/Public/show_bug.cgi?id=16301
--- 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,