You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p> For stylesheets referred to by an HTML <ahref=http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-stylesheet><code><link rel=stylesheet></code></a> element,
456
-
the <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a> is the encoding of the referring document.
456
+
the <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a> is determined as follows:
457
+
458
+
<p><ul>
459
+
<li>
460
+
<adata-link-type=dfnhref=#get-an-encodingtitle="get an encoding">Get an encoding</a> for the value of the <code>charset</code> attribute of the element, if any.
461
+
If that does not return failure,
462
+
use the return value as the environment encoding.
463
+
464
+
<li>
465
+
Otherwise, use the encoding of the referring document.
466
+
</ul>
457
467
458
468
<pclass=note> Note: this should be moved to the HTML spec.
<p> For stylesheets referred to by an <ahref=http://www.w3.org/TR/xml-stylesheet/#the-xml-stylesheet-processing-instruction><code>xml-stylesheet</code></a> processing instruction <adata-biblio-type=normativedata-link-type=bibliohref=#xmlstyletitle=xmlstyle>[XMLSTYLE]</a>,
For stylesheets referred to by an HTML <ahref=http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-stylesheet><code><link rel=stylesheet></code></a> element,
338
-
the <a>environment encoding</a> is the encoding of the referring document.
338
+
the <a>environment encoding</a> is determined as follows:
339
+
340
+
<ul>
341
+
<li>
342
+
<a>Get an encoding</a> for the value of the <code>charset</code> attribute of the element, if any.
343
+
If that does not return failure,
344
+
use the return value as the environment encoding.
345
+
346
+
<li>
347
+
Otherwise, use the encoding of the referring document.
348
+
</ul>
339
349
340
350
Note: this should be moved to the HTML spec.
341
351
352
+
Note: Even though the HTML spec marks the <code>charset</code> attribute as obsolete,
353
+
implementations still consider it as of this writing (October 2013.)
0 commit comments