Ignore:
Timestamp:
Sep 27, 2009, 4:08:05 AM (10 years ago)
Author:
julian.reschke@…
Message:

RECOMMEND not to quote things that do not require quoting; for readability, have a separate grammar for quoted-pair in comment, now called quoted-cpair (see #194)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p1-messaging.xml

    r698 r702  
    460460  <x:anchor-alias value="quoted-pair"/>
    461461   The backslash character ("\") can be used as a single-character
    462    quoting mechanism only within quoted-string and comment constructs (<xref target="header.fields"/>).
     462   quoting mechanism only within quoted-string constructs:
    463463</t>
    464464<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="quoted-pair"/>
    465465  <x:ref>quoted-pair</x:ref>    = "\" ( <x:ref>WSP</x:ref> / <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref> )
    466466</artwork></figure>
     467<t>
     468   Producers &SHOULD-NOT; escape characters that do not require escaping
     469   (DQUOTE and the backslash character).
     470</t>
    467471</section>
    468472
     
    11601164</t>
    11611165<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="comment"/><iref primary="true" item="Grammar" subitem="ctext"/>
    1162   <x:ref>comment</x:ref>        = "(" *( <x:ref>ctext</x:ref> / <x:ref>quoted-pair</x:ref> / <x:ref>comment</x:ref> ) ")"
     1166  <x:ref>comment</x:ref>        = "(" *( <x:ref>ctext</x:ref> / <x:ref>quoted-cpair</x:ref> / <x:ref>comment</x:ref> ) ")"
    11631167  <x:ref>ctext</x:ref>          = <x:ref>OWS</x:ref> / %x21-27 / %x2A-5B / %x5D-7E / <x:ref>obs-text</x:ref>
    11641168                 ; <x:ref>OWS</x:ref> / &lt;<x:ref>VCHAR</x:ref> except "(", ")", and "\"&gt; / <x:ref>obs-text</x:ref>
    11651169</artwork></figure>
    1166  
     1170<t anchor="rule.quoted-cpair">
     1171  <x:anchor-alias value="quoted-cpair"/>
     1172   The backslash character ("\") can be used as a single-character
     1173   quoting mechanism only within comment constructs:
     1174</t>
     1175<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="quoted-cpair"/>
     1176  <x:ref>quoted-cpair</x:ref>    = "\" ( <x:ref>WSP</x:ref> / <x:ref>VCHAR</x:ref> / <x:ref>obs-text</x:ref> )
     1177</artwork></figure>
     1178<t>
     1179   Producers &SHOULD-NOT; escape characters that do not require escaping
     1180   (the backslash character "\" and the parentheses "(" and ")").
     1181</t>
    11671182</section>
    11681183
Note: See TracChangeset for help on using the changeset viewer.