Skip to content

Commit 499a8f8

Browse files
committed
replace reference for application/x-www-form-urlencoded
now registered in IANA and defined in WHATWG URL spec. Also removed outdated note about it not being registered in IANA.
1 parent 8413b1f commit 499a8f8

File tree

1 file changed

+19
-39
lines changed

1 file changed

+19
-39
lines changed

draft-ietf-oauth-v2-1.md

Lines changed: 19 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,22 @@ normative:
5959
author:
6060
name: "American National Standards Institute"
6161
date: 1986
62-
W3C.REC-html401-19991224:
62+
WHATWG.URL:
63+
title: "URL"
64+
target: https://url.spec.whatwg.org/
65+
author:
66+
- ins: WHATWG
67+
date: May 2022
6368
W3C.REC-xml-20081126:
69+
title: "Extensible Markup Language"
70+
target: https://www.w3.org/TR/REC-xml/REC-xml-20081126.xml
71+
author:
72+
- ins: T. Bray
73+
- ins: J. Paoli
74+
- ins: C. M. Sperberg-McQueen
75+
- ins: E. Maler
76+
- ins: F. Yergeau
77+
date: November 2008
6478

6579
informative:
6680
RFC6265:
@@ -2028,7 +2042,7 @@ all of the following conditions are met:
20282042

20292043
* The content follows the encoding requirements of the
20302044
`application/x-www-form-urlencoded` content-type as defined by
2031-
HTML 4.01 [W3C.REC-html401-19991224].
2045+
the URL Living Standard {{WHATWG.URL}}.
20322046

20332047
* The HTTP request content is single-part.
20342048

@@ -3367,8 +3381,8 @@ work is based upon. No changes to those registries are required by this specific
33673381

33683382
This section provides Augmented Backus-Naur Form (ABNF) syntax
33693383
descriptions for the elements defined in this specification using the
3370-
notation of [RFC5234]. The ABNF below is defined in terms of Unicode
3371-
code points [W3C.REC-xml-20081126]; these characters are typically
3384+
notation of {{RFC5234}}. The ABNF below is defined in terms of Unicode
3385+
code points {{W3C.REC-xml-20081126}}; these characters are typically
33723386
encoded in UTF-8. Elements are presented in the order first defined.
33733387

33743388
Some of the definitions that follow use the "URI-reference"
@@ -3383,7 +3397,7 @@ Some of the definitions that follow use these common definitions:
33833397
%xE000-FFFD / %x10000-10FFFF
33843398

33853399
(The UNICODECHARNOCRLF definition is based upon the Char definition
3386-
in Section 2.2 of [W3C.REC-xml-20081126], but omitting the Carriage
3400+
in Section 2.2 of {{W3C.REC-xml-20081126}}, but omitting the Carriage
33873401
Return and Linefeed characters.)
33883402

33893403

@@ -3515,40 +3529,6 @@ ABNF for `code_challenge` is as follows.
35153529
DIGIT = %x30-39
35163530

35173531

3518-
# Use of application/x-www-form-urlencoded Media Type
3519-
3520-
At the time of publication of this specification, the
3521-
`application/x-www-form-urlencoded` media type was defined in
3522-
Section 17.13.4 of [W3C.REC-html401-19991224] but not registered in
3523-
the IANA MIME Media Types registry
3524-
(<http://www.iana.org/assignments/media-types>). Furthermore, that
3525-
definition is incomplete, as it does not consider non-US-ASCII
3526-
characters.
3527-
3528-
To address this shortcoming when generating contents using this media
3529-
type, names and values MUST be encoded using the UTF-8 character
3530-
encoding scheme [RFC3629] first; the resulting octet sequence then
3531-
needs to be further encoded using the escaping rules defined in
3532-
[W3C.REC-html401-19991224].
3533-
3534-
When parsing data from a content using this media type, the names and
3535-
values resulting from reversing the name/value encoding consequently
3536-
need to be treated as octet sequences, to be decoded using the UTF-8
3537-
character encoding scheme.
3538-
3539-
For example, the value consisting of the six Unicode code points
3540-
(1) U+0020 (SPACE), (2) U+0025 (PERCENT SIGN),
3541-
(3) U+0026 (AMPERSAND), (4) U+002B (PLUS SIGN),
3542-
(5) U+00A3 (POUND SIGN), and (6) U+20AC (EURO SIGN) would be encoded
3543-
into the octet sequence below (using hexadecimal notation):
3544-
3545-
20 25 26 2B C2 A3 E2 82 AC
3546-
3547-
and then represented in the content as:
3548-
3549-
+%25%26%2B%C2%A3%E2%82%AC
3550-
3551-
35523532
# Extensions {#extensions}
35533533

35543534
Below is a list of well-established extensions at the time of publication:

0 commit comments

Comments
 (0)