Skip to content

Commit 2e8f05a

Browse files
authored
Warn about other notions of ASCII whitespace
1 parent ef941a3 commit 2e8f05a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

infra.bs

+14
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,20 @@ SPACE.
933933

934934
<p class=note>"Whitespace" is a mass noun.
935935

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+
936950
<p>A <dfn export>C0 control</dfn> is a <a>code point</a> in the range U+0000 NULL to
937951
U+001F INFORMATION SEPARATOR ONE, inclusive.
938952

0 commit comments

Comments
 (0)