[html5] r2678 - [e] (0) Use the %x... syntax in ABNF. (credit: jr)
whatwg at whatwg.org
whatwg at whatwg.org
Fri Jan 16 14:44:52 PST 2009
Author: ianh
Date: 2009-01-16 14:44:51 -0800 (Fri, 16 Jan 2009)
New Revision: 2678
Modified:
index
source
Log:
[e] (0) Use the %x... syntax in ABNF. (credit: jr)
Modified: index
===================================================================
--- index 2009-01-16 21:07:13 UTC (rev 2677)
+++ index 2009-01-16 22:44:51 UTC (rev 2678)
@@ -10186,7 +10186,7 @@
that the value of the DOM <code title=dom-script-text><a href=#dom-script-text>text</a></code>
attribute, which is derived from the element's contents, matches the
<code title="">documentation</code> production in the following
- ABNF. <a href=#refsABNF>[ABNF]</a></p> <!-- XXX
+ ABNF, the character set for which is Unicode. <a href=#refsABNF>[ABNF]</a></p> <!-- XXX
ftp://ftp.rfc-editor.org/in-notes/std/std68.txt -->
<pre>documentation = *( *( space / tab / comment ) [ line-comment ] newline )
@@ -10194,14 +10194,17 @@
line-comment = slash slash *not-newline
; characters
-space = < a U+0020 SPACE character >
-tab = < a U+0009 TAB character >
-newline = < a U+000A LINE FEED character >
-star = < a U+002A ASTERISK character >
-slash = < a U+002F SOLIDUS character >
-not-newline = < a single Unicode character other than U+000A LINE FEED >
-not-star = < a single Unicode character other than U+002A ASTERISK >
-not-slash = < a single Unicode character other than U+002F SOLIDUS ></pre>
+tab = %x0009 ; U+0009 TAB
+newline = %x000A ; U+000A LINE FEED
+space = %x0020 ; U+0020 SPACE
+star = %x002A ; U+002A ASTERISK
+slash = %x002F ; U+002F SOLIDUS
+not-newline = %x0000-0009 / %x000B-%10FFFF
+ ; a Unicode character other than U+000A LINE FEED
+not-star = %x0000-0029 / %x002B-%10FFFF
+ ; a Unicode character other than U+002A ASTERISK
+not-slash = %x0000-002E / %x0030-%10FFFF
+ ; a Unicode character other than U+002F SOLIDUS</pre>
<div class=example>
@@ -44129,7 +44132,8 @@
<p>This event stream format's MIME type is
<code>text/event-stream</code>.</p>
- <p>The event stream format is as described by the <code title="">stream</code> production of the following ABNF. <a href=#refsABNF>[ABNF]</a></p> <!-- XXX
+ <p>The event stream format is as described by the <code title="">stream</code> production of the following ABNF, the
+ character set for which is Unicode. <a href=#refsABNF>[ABNF]</a></p> <!-- XXX
ftp://ftp.rfc-editor.org/in-notes/std/std68.txt -->
<pre>stream = [ bom ] *event
@@ -44137,16 +44141,18 @@
comment = colon *any-char end-of-line
field = 1*name-char [ colon [ space ] *any-char ] end-of-line
end-of-line = ( cr lf / cr / lf / eof )
-eof = < matches repeatedly at the end of the stream ></pre>
+eof = < matches repeatedly at the end of the stream >
; characters
-bom = < a single U+FEFF BYTE ORDER MARK character >
-space = < a single U+0020 SPACE character >
-colon = < a single U+003A COLON character >
-cr = < a single U+000D CARRIAGE RETURN character >
-lf = < a single U+000A LINE FEED character >
-name-char = < a single Unicode character other than U+003A COLON, U+000D CARRIAGE RETURN and U+000A LINE FEED >
-any-char = < a single Unicode character other than U+000D CARRIAGE RETURN and U+000A LINE FEED >
+lf = %x000A ; U+000A LINE FEED
+cr = %x000D ; U+000D CARRIAGE RETURN
+space = %x0020 ; U+0020 SPACE
+colon = %x003A ; U+003A COLON
+bom = %xFEFF ; U+FEFF BYTE ORDER MARK
+name-char = %x0000-0009 / %x000B-000C / %x000E-0039 / %x003B-10FFFF
+ ; a Unicode character other than U+000A LINE FEED, U+000D CARRIAGE RETURN, or U+003A COLON
+any-char = %x0000-0009 / %x000B-000C / %x000E-10FFFF
+ ; a Unicode character other than U+000D CARRIAGE RETURN or U+003A COLON</pre>
<p>Event streams in this format must always be encoded as
UTF-8.</p>
Modified: source
===================================================================
--- source 2009-01-16 21:07:13 UTC (rev 2677)
+++ source 2009-01-16 22:44:51 UTC (rev 2678)
@@ -10793,7 +10793,8 @@
that the value of the DOM <code title="dom-script-text">text</code>
attribute, which is derived from the element's contents, matches the
<code title="">documentation</code> production in the following
- ABNF. <a href="#refsABNF">[ABNF]</a></p> <!-- XXX
+ ABNF, the character set for which is Unicode. <a
+ href="#refsABNF">[ABNF]</a></p> <!-- XXX
ftp://ftp.rfc-editor.org/in-notes/std/std68.txt -->
<pre>documentation = *( *( space / tab / comment ) [ line-comment ] newline )
@@ -10801,14 +10802,17 @@
line-comment = slash slash *not-newline
; characters
-space = < a U+0020 SPACE character >
-tab = < a U+0009 TAB character >
-newline = < a U+000A LINE FEED character >
-star = < a U+002A ASTERISK character >
-slash = < a U+002F SOLIDUS character >
-not-newline = < a single Unicode character other than U+000A LINE FEED >
-not-star = < a single Unicode character other than U+002A ASTERISK >
-not-slash = < a single Unicode character other than U+002F SOLIDUS ></pre>
+tab = %x0009 ; U+0009 TAB
+newline = %x000A ; U+000A LINE FEED
+space = %x0020 ; U+0020 SPACE
+star = %x002A ; U+002A ASTERISK
+slash = %x002F ; U+002F SOLIDUS
+not-newline = %x0000-0009 / %x000B-%10FFFF
+ ; a Unicode character other than U+000A LINE FEED
+not-star = %x0000-0029 / %x002B-%10FFFF
+ ; a Unicode character other than U+002A ASTERISK
+not-slash = %x0000-002E / %x0030-%10FFFF
+ ; a Unicode character other than U+002F SOLIDUS</pre>
<div class="example">
@@ -50355,7 +50359,8 @@
<code>text/event-stream</code>.</p>
<p>The event stream format is as described by the <code
- title="">stream</code> production of the following ABNF. <a
+ title="">stream</code> production of the following ABNF, the
+ character set for which is Unicode. <a
href="#refsABNF">[ABNF]</a></p> <!-- XXX
ftp://ftp.rfc-editor.org/in-notes/std/std68.txt -->
@@ -50364,16 +50369,18 @@
comment = colon *any-char end-of-line
field = 1*name-char [ colon [ space ] *any-char ] end-of-line
end-of-line = ( cr lf / cr / lf / eof )
-eof = < matches repeatedly at the end of the stream ></pre>
+eof = < matches repeatedly at the end of the stream >
; characters
-bom = < a single U+FEFF BYTE ORDER MARK character >
-space = < a single U+0020 SPACE character >
-colon = < a single U+003A COLON character >
-cr = < a single U+000D CARRIAGE RETURN character >
-lf = < a single U+000A LINE FEED character >
-name-char = < a single Unicode character other than U+003A COLON, U+000D CARRIAGE RETURN and U+000A LINE FEED >
-any-char = < a single Unicode character other than U+000D CARRIAGE RETURN and U+000A LINE FEED >
+lf = %x000A ; U+000A LINE FEED
+cr = %x000D ; U+000D CARRIAGE RETURN
+space = %x0020 ; U+0020 SPACE
+colon = %x003A ; U+003A COLON
+bom = %xFEFF ; U+FEFF BYTE ORDER MARK
+name-char = %x0000-0009 / %x000B-000C / %x000E-0039 / %x003B-10FFFF
+ ; a Unicode character other than U+000A LINE FEED, U+000D CARRIAGE RETURN, or U+003A COLON
+any-char = %x0000-0009 / %x000B-000C / %x000E-10FFFF
+ ; a Unicode character other than U+000D CARRIAGE RETURN or U+003A COLON</pre>
<p>Event streams in this format must always be encoded as
UTF-8.</p>
More information about the Commit-Watchers
mailing list