You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that URL parsers in the wild allow square brackets ([]) in path, query, and fragment. On the other hand, it seems that the URL spec says square brackets in path, query, and fragment will cause validation error.
My question is which one is correct:
url parsers are correct, the spec should be tweaked
the spec is correct, urls parses should be tweaked
both are correct (I'm wrong)
My opinion is url parsers are correct though I'm not too sure. Please let me know if I missed something.
URL parsers in the wild allow square brackets in path, query, and fragment:
It seems that URL parsers in the wild allow square brackets ([]) in path, query, and fragment. On the other hand, it seems that the URL spec says square brackets in path, query, and fragment will cause validation error.
My question is which one is correct:
My opinion is url parsers are correct though I'm not too sure. Please let me know if I missed something.
URL parsers in the wild allow square brackets in path, query, and fragment:
I tested with Node.js 16 (stable), Firefox 90 (nightly) and Chrome 90 (stable).
The URL spec says square brackets in path, query, and fragment will cause validation error.
In basic URL parser's path state step 2., query state step 3. and fragment state step 1.:
and URL code point doesn't contain square brackets (U+005B ([) and U+005D (]).
The text was updated successfully, but these errors were encountered: