From e0c721b680d0977013ef2a14ba578388c01bd331 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren A scheme-relative URL must be
-" Userinfo must be a
-username, optionally followed by a
-" A username must be zero or more
-URL units, excluding " A password must be zero or more
-URL units, excluding " A scheme-relative URL must be
+" A port must be zero or more
ASCII digits.
@@ -859,6 +841,12 @@ U+100000 to U+10FFFD.
The URL units are URL code points and
percent-encoded bytes.
+ There is no valid way to express a
+username or password within a
+URL.
+
If c is " If the @ flag is set,
- parse error, prepend " Parse error.
+
+ If the @ flag is set, prepend " Set the @ flag.
@@ -1259,16 +1248,7 @@ optionally with an encoding
For each code point in buffer, run these substeps:
If code point is U+0009, U+000A, or U+000D,
- parse error, continue.
-
- If code point is not a
- URL code point and not
- " If code point is " If code point is U+0009, U+000A, or U+000D, continue.
If code point is "//
", optionally followed by
-userinfo and "@
",
-followed by a host, optionally followed
-by ":
" and a port,
-optionally followed by an
-absolute-path-relative URL.
-
-:
" and a
-password.
-
-/
",
-":
, "?
", and "@
".
-
-
-/
",
-"?
", and "@
".
+//
", followed by a host, optionally followed by ":
" and
+a port, optionally followed by an absolute-path-relative URL.
+
+URL parsing
@@ -1249,8 +1237,9 @@ optionally with an encoding
@
", run these substeps:
-
%40
" to
+ %40
" to
buffer.
-
%
", parse error.
-
- %
" and
- remaining does not start with two
- ASCII hex digits, parse error.
+ :
" and
url's
diff --git a/url.html b/url.html
index c7d0673b..cf289403 100644
--- a/url.html
+++ b/url.html
@@ -1189,29 +1189,8 @@ scheme-relative URL must be
-"
//
", optionally followed by
-userinfo and "@
",
-followed by a host, optionally followed
-by ":
" and a port,
-optionally followed by an
-absolute-path-relative URL.
-
-
Userinfo must be a
-username, optionally followed by a
-":
" and a
-password.
-
-
A username must be zero or more
-URL units, excluding "/
",
-":
, "?
", and "@
".
-
-
-
A password must be zero or more
-URL units, excluding "/
",
-"?
", and "@
".
+"//
", followed by a host, optionally followed by ":
" and
+a port, optionally followed by an absolute-path-relative URL.
A port must be zero or more @@ -1293,6 +1272,14 @@
There is no valid way to express a +username or password within a +URL. +
%40
" to
+ Parse error. + +
+If the @ flag is set, prepend "%40
" to
buffer.
If code point is not a
- URL code point and not
- "%
", parse error.
-
-
If code point is "%
" and
- remaining does not start with two
- ASCII hex digits, parse error.
+
If code point is U+0009, U+000A, or U+000D, continue.