NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 514 - Clarify that there's no encoding necessary for innerHTML and such like.
Clarify that there's no encoding necessary for innerHTML and such like.
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-27 14:16 CEST by Henri Sivonen
Modified: 2009-05-27 14:35 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-05-27 14:16:01 CEST
Index: source
===================================================================
--- source	(revision 2698)
+++ source	(revision 2699)
@@ -8005,7 +8005,9 @@
    title="dom-document-close">document.close()</code> methods, and
    that the tokeniser will wait for an explicit call to <code
    title="dom-document-close">document.close()</code> before emitting
-   an end-of-file token).</p></li>
+   an end-of-file token).  The encoding <span
+   title="concept-encoding-confidence">confidence</span> is
+   <i>irrelevant</i>.</p></li>
 
    <li>Mark the document as being an <span title="HTML documents">HTML
    document</span> (it might already be so-marked).</li>
@@ -53779,11 +53781,16 @@
   title="Content-Type">Content-Type metadata</span> of the document)
   and all the bytes available so far, and returns an encoding and a
   <dfn title="concept-encoding-confidence">confidence</dfn>. The
-  confidence is either <i>tentative</i> or <i>certain</i>. The
-  encoding used, and whether the confidence in that encoding is
-  <i>tentative</i> or <i>confident</i>, is <a
+  confidence is either <i>tentative</i>, <i>certain</i>, or
+  <i>irrelevant</i>. The encoding used, and whether the confidence in
+  that encoding is <i>tentative</i> or <i>confident</i>, is <a
   href="#meta-charset-during-parse">used during the parsing</a> to
-  determine whether to <span>change the encoding</span>.</p>
+  determine whether to <span>change the encoding</span>. If no
+  encoding is necessary, e.g. because the parser is operating on a
+  stream of Unicode characters and doesn't have to use an encoding at
+  all, then the <span
+  title="concept-encoding-confidence">confidence</span> is
+  <i>irrelevant</i>.</p>
 
   <ol>
 
@@ -60664,7 +60671,10 @@
    <li>
 
     <p>Place into the <span>input stream</span> for the <span>HTML
-    parser</span> just created the <var title="">input</var>.</p>
+    parser</span> just created the <var title="">input</var>. The
+    encoding <span
+    title="concept-encoding-confidence">confidence</span> is
+    <i>irrelevant</i>.</p>
 
    </li>