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
and thus maximizes the likelihood of it being implemented correctly.
497
496
498
497
<li>
499
-
Otherwise, if an <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a> is provided by the referring document,
498
+
Otherwise, if an <adata-link-type=dfnhref=#environment-encodingtitle="environment encoding">environment encoding</a> is provided by the referring document,
500
499
use that as the fallback encoding.
501
500
502
-
<p> Note that the concept of <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a> is required for legacy purposes
503
-
for HTML and XML.
504
-
New types of referring documents <strong>should not</strong> provide an <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a>,
505
-
so the stylesheet defaults to UTF-8 instead in the absence of more explicit information.
506
-
507
501
<li>
508
502
Otherwise, use <code>utf-8</code> as the fallback encoding.
<p> Document languages that refer to CSS stylesheets that are decoded from bytes
533
-
must define an <dfndata-dfn-type=dfndata-export="" id=environment-encoding0>environment encoding<aclass=self-linkhref=#environment-encoding0></a></dfn> for each such stylesheet,
524
+
may define an <dfndata-dfn-type=dfndata-export="" id=environment-encoding>environment encoding<aclass=self-linkhref=#environment-encoding></a></dfn> for each such stylesheet,
534
525
which is used as a fallback when other encoding hints are not available or can not be used.
535
526
527
+
<p> The concept of <adata-link-type=dfnhref=#environment-encodingtitle="environment encoding">environment encoding</a> only exists for compatibility with legacy content.
528
+
New formats and new linking mechanisms <b>should not</b> provide an <adata-link-type=dfnhref=#environment-encodingtitle="environment encoding">environment encoding</a>,
529
+
so the stylesheet defaults to UTF-8 instead in the absence of more explicit information.
530
+
536
531
<pclass=note> Note: <adata-biblio-type=informativedata-link-type=bibliohref=#htmltitle=html>[HTML]</a> defines <ahref=http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-stylesheet>the environment encoding for <code><link rel=stylesheet></code></a>.
537
532
538
533
<pclass=note> Note: <adata-biblio-type=informativedata-link-type=bibliohref=#cssomtitle=cssom>[CSSOM]</a> defines <ahref=http://dev.w3.org/csswg/cssom/#requirements-on-user-agents-implementing-the-xml-stylesheet-processing-instruction>the environment encoding for <code><xml-stylesheet?></code></a>.
539
534
540
535
<pclass=note> Note: <adata-biblio-type=informativedata-link-type=bibliohref=#css3cascadetitle=css3cascade>[CSS3CASCADE]</a> defines <ahref=http://dev.w3.org/csswg/css-cascade/#at-ruledef-import>the environment encoding for <code>@import</code></a>.
0 commit comments