srctree

David Zero parent d1899f31 1e3c9b0a
url: Update for 2023-09-27 spec version

inlinesplit
url/url.cpp added: 4, removed: 4, total 0
@@ -719,7 +719,7 @@ void UrlParser::state_authority() {
buffer_.clear();
} else if (is_eof() || c == '/' || c == '?' || c == '#' || (special_schemes.contains(url_.scheme) && c == '\\')) {
if (at_sign_seen_ && buffer_.empty()) {
validation_error(ValidationError::InvalidCredentials);
validation_error(ValidationError::HostMissing);
 
state_ = ParserState::Failure;
 
 
url/url.h added: 4, removed: 4, total 0
@@ -106,7 +106,7 @@ struct Url {
bool operator==(Url const &b) const { return serialize() == b.serialize(); }
};
 
// This parser is current with the WHATWG URL specification as of 1 March 2023
// This parser is current with the WHATWG URL specification as of 27 September 2023
class UrlParser final : util::BaseParser {
public:
UrlParser() : BaseParser{""} {}