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
where the "…" is the sequence of bytes corresponding to the encoding’s label.
465
465
</details>
466
466
467
-
<p> UAs may impose an arbitrary limit upon the number of <code>XX</code> bytes scanned,
468
-
as long as it is large enough to encompass all of the <ahref=http://encoding.spec.whatwg.org/#label>labels</a> defined in <adata-biblio-type=normativedata-link-type=bibliohref=#encodingtitle=encoding>[ENCODING]</a>;
469
-
at the time of writing this specification these are all 19 or fewer bytes long.
470
-
471
467
<p> If the return value was <code>utf-16be</code> or <code>utf-16le</code>,
Otherwise, if an <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a> is provided by the referring document,
501
497
use that as the fallback encoding.
502
498
499
+
<p> Note that the concept of <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a> is required for legacy purposes
500
+
for HTML and XML.
501
+
New types of referring documents <strong>should not</strong> provide an <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a>,
502
+
so the stylesheet defaults to UTF-8 instead in the absence of more explicit information.
503
+
503
504
<li>
504
505
Otherwise, use <code>utf-8</code> as the fallback encoding.
0 commit comments