LibURL: Update spec comment for validation error in authority state

See: https://github.com/whatwg/url/commit/3e8cd02bb
This commit is contained in:
Shannon Booth 2024-08-10 15:44:41 +12:00 committed by Andreas Kling
parent 84a7fead0e
commit 84a09476ba
Notes: github-actions[bot] 2024-08-10 08:47:34 +00:00

View file

@ -1237,7 +1237,7 @@ URL Parser::basic_parse(StringView raw_input, Optional<URL> const& base_url, Opt
|| (url->is_special() && code_point == '\\')) {
// then:
// 1. If atSignSeen is true and buffer is the empty string, invalid-credentials validation error, return failure.
// 1. If atSignSeen is true and buffer is the empty string, host-missing validation error, return failure.
if (at_sign_seen && buffer.is_empty()) {
report_validation_error();
return {};