[html5] r8391 - [giow] (3) Define how <link charset> works. Fixing https://www.w3.org/Bugs/Publi [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Jan 13 15:13:00 PST 2014


Author: ianh
Date: 2014-01-13 15:12:56 -0800 (Mon, 13 Jan 2014)
New Revision: 8391

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Define how <link charset> works.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23684
Affected topics: CSS, HTML

Modified: complete.html
===================================================================
--- complete.html	2014-01-13 22:45:39 UTC (rev 8390)
+++ complete.html	2014-01-13 23:12:56 UTC (rev 8391)
@@ -3943,7 +3943,10 @@
      <li><dfn id=scroll-to-the-beginning-of-the-document>Scroll to the beginning of the document</dfn></li>
      <li>The <dfn id=event-resize title=event-resize><code>resize</code></dfn> event</li>
      <li>The <dfn id=event-scroll title=event-scroll><code>scroll</code></dfn> event</li>
-    </ul><p>The term <dfn id=css-styling-attribute>CSS styling attribute</dfn> is defined in the <cite>CSS Style Attributes</cite>
+    </ul><p>The term <dfn id=environment-encoding>environment encoding</dfn> is defined in the <cite>CSS Syntax</cite>
+    specifications. <a href=#refsCSSSYNTAX>[CSSSYNTAX]</a></p>
+
+    <p>The term <dfn id=css-styling-attribute>CSS styling attribute</dfn> is defined in the <cite>CSS Style Attributes</cite>
     specification. <a href=#refsCSSATTR>[CSSATTR]</a></p>
 
     <p>The <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object's use of fonts depends on the features
@@ -33288,8 +33291,15 @@
      <dt><a href=#concept-css-style-sheet-css-rules title=concept-css-style-sheet-CSS-rules>CSS rules</a></dt>
      <dd><p>Left uninitialized.</dd>
 
-    </dl></li>
+    </dl><p>The CSS <a href=#environment-encoding>environment encoding</a> is the result of running the following steps: <a href=#refsCSSSYNTAX>[CSSSYNTAX]</a></p>
 
+    <ol><li><p>If the element has a <code title=attr-link-charset><a href=#attr-link-charset>charset</a></code> attribute, <a href=#getting-an-encoding title="getting an encoding">get an encoding</a> from that attribute's value. If that
+     succeeds, return the resulting encoding and abort these steps. <a href=#refsENCODING>[ENCODING]</a></li>
+
+     <li><p>Otherwise, return the <a href="#document's-character-encoding">document's character encoding</a>. <a href=#refsDOM>[DOM]</a></li>
+
+    </ol></li>
+
   </ol></div>
 <!--REMOVE-TOPIC:CSS-->
 
@@ -102318,6 +102328,9 @@
    <dt id=refsCSSSCOPED>[CSSSCOPED]</dt>
    <dd><cite>CSS Scoped Style Sheets</cite>, T. Atkins. Your Imagination.</dd>
 
+   <dt id=refsCSSSYNTAX>[CSSSYNTAX]</dt>
+   <dd><cite><a href=http://dev.w3.org/csswg/css-syntax/>CSS Syntax</a></cite>, T. Atkins, S. Sapin. W3C.</dd>
+
    <dt id=refsCSSVALUES>[CSSVALUES]</dt>
    <dd><cite><a href=http://dev.w3.org/csswg/css3-values/>CSS3 Values and Units</a></cite>, H. Lie, T. Atkins, E. Etemad. W3C.</dd>
 

Modified: index
===================================================================
--- index	2014-01-13 22:45:39 UTC (rev 8390)
+++ index	2014-01-13 23:12:56 UTC (rev 8391)
@@ -3943,7 +3943,10 @@
      <li><dfn id=scroll-to-the-beginning-of-the-document>Scroll to the beginning of the document</dfn></li>
      <li>The <dfn id=event-resize title=event-resize><code>resize</code></dfn> event</li>
      <li>The <dfn id=event-scroll title=event-scroll><code>scroll</code></dfn> event</li>
-    </ul><p>The term <dfn id=css-styling-attribute>CSS styling attribute</dfn> is defined in the <cite>CSS Style Attributes</cite>
+    </ul><p>The term <dfn id=environment-encoding>environment encoding</dfn> is defined in the <cite>CSS Syntax</cite>
+    specifications. <a href=#refsCSSSYNTAX>[CSSSYNTAX]</a></p>
+
+    <p>The term <dfn id=css-styling-attribute>CSS styling attribute</dfn> is defined in the <cite>CSS Style Attributes</cite>
     specification. <a href=#refsCSSATTR>[CSSATTR]</a></p>
 
     <p>The <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object's use of fonts depends on the features
@@ -33288,8 +33291,15 @@
      <dt><a href=#concept-css-style-sheet-css-rules title=concept-css-style-sheet-CSS-rules>CSS rules</a></dt>
      <dd><p>Left uninitialized.</dd>
 
-    </dl></li>
+    </dl><p>The CSS <a href=#environment-encoding>environment encoding</a> is the result of running the following steps: <a href=#refsCSSSYNTAX>[CSSSYNTAX]</a></p>
 
+    <ol><li><p>If the element has a <code title=attr-link-charset><a href=#attr-link-charset>charset</a></code> attribute, <a href=#getting-an-encoding title="getting an encoding">get an encoding</a> from that attribute's value. If that
+     succeeds, return the resulting encoding and abort these steps. <a href=#refsENCODING>[ENCODING]</a></li>
+
+     <li><p>Otherwise, return the <a href="#document's-character-encoding">document's character encoding</a>. <a href=#refsDOM>[DOM]</a></li>
+
+    </ol></li>
+
   </ol></div>
 <!--REMOVE-TOPIC:CSS-->
 
@@ -102318,6 +102328,9 @@
    <dt id=refsCSSSCOPED>[CSSSCOPED]</dt>
    <dd><cite>CSS Scoped Style Sheets</cite>, T. Atkins. Your Imagination.</dd>
 
+   <dt id=refsCSSSYNTAX>[CSSSYNTAX]</dt>
+   <dd><cite><a href=http://dev.w3.org/csswg/css-syntax/>CSS Syntax</a></cite>, T. Atkins, S. Sapin. W3C.</dd>
+
    <dt id=refsCSSVALUES>[CSSVALUES]</dt>
    <dd><cite><a href=http://dev.w3.org/csswg/css3-values/>CSS3 Values and Units</a></cite>, H. Lie, T. Atkins, E. Etemad. W3C.</dd>
 

Modified: source
===================================================================
--- source	2014-01-13 22:45:39 UTC (rev 8390)
+++ source	2014-01-13 23:12:56 UTC (rev 8391)
@@ -2726,6 +2726,9 @@
      <li>The <dfn data-x="event-scroll"><code>scroll</code></dfn> event</li>
     </ul>
 
+    <p>The term <dfn>environment encoding</dfn> is defined in the <cite>CSS Syntax</cite>
+    specifications. <a href="#refsCSSSYNTAX">[CSSSYNTAX]</a></p>
+
     <p>The term <dfn>CSS styling attribute</dfn> is defined in the <cite>CSS Style Attributes</cite>
     specification. <a href="#refsCSSATTR">[CSSATTR]</a></p>
 
@@ -36204,6 +36207,21 @@
 
     </dl>
 
+    <p>The CSS <span>environment encoding</span> is the result of running the following steps: <a
+    href="#refsCSSSYNTAX">[CSSSYNTAX]</a></p>
+
+    <ol>
+
+     <li><p>If the element has a <code data-x="attr-link-charset">charset</code> attribute, <span
+     data-x="getting an encoding">get an encoding</span> from that attribute's value. If that
+     succeeds, return the resulting encoding and abort these steps. <a
+     href="#refsENCODING">[ENCODING]</a></p></li>
+
+     <li><p>Otherwise, return the <span>document's character encoding</span>. <a
+     href="#refsDOM">[DOM]</a></p></li>
+
+    </ol>
+
    </li>
 
   </ol>
@@ -114184,6 +114202,9 @@
    <dt id="refsCSSSCOPED">[CSSSCOPED]</dt>
    <dd><cite>CSS Scoped Style Sheets</cite>, T. Atkins. Your Imagination.</dd>
 
+   <dt id="refsCSSSYNTAX">[CSSSYNTAX]</dt>
+   <dd><cite><a href="http://dev.w3.org/csswg/css-syntax/">CSS Syntax</a></cite>, T. Atkins, S. Sapin. W3C.</dd>
+
    <dt id="refsCSSVALUES">[CSSVALUES]</dt>
    <dd><cite><a href="http://dev.w3.org/csswg/css3-values/">CSS3 Values and Units</a></cite>, H. Lie, T. Atkins, E. Etemad. W3C.</dd>
 




More information about the Commit-Watchers mailing list