Warn about other notions of ASCII whitespace · whatwg/infra@2e8f05a
jyasskin
·
2024-11-25
·
via Recent Commits to infra:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -933,6 +933,20 @@ SPACE.
|
933 | 933 | |
934 | 934 | <p class=note>"Whitespace" is a mass noun. |
935 | 935 | |
| 936 | +<div class=note> |
| 937 | +<p>The XML, JSON, and parts of the HTTP specifications exclude U+000C FF in their definition of |
| 938 | + whitespace: |
| 939 | + |
| 940 | +<ul class=brief> |
| 941 | +<li>[[xml10#NT-S|XML's S production]] |
| 942 | +<li>[[JSON#section-2|JSON's ws production]] |
| 943 | +<li>[=HTTP whitespace=] |
| 944 | +</ul> |
| 945 | + |
| 946 | +<p>Prefer using Infra's [=ASCII whitespace=] definition for new features, unless your specification |
| 947 | + deals exclusively with XML/JSON/HTTP. |
| 948 | +</div> |
| 949 | + |
936 | 950 | <p>A <dfn export>C0 control</dfn> is a <a>code point</a> in the range U+0000 NULL to |
937 | 951 | U+001F INFORMATION SEPARATOR ONE, inclusive. |
938 | 952 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。