mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
AK: Add missing spec assert in relative state basic URL parsing
This commit is contained in:
parent
4dd4ff68d3
commit
a809d1634f
1 changed files with 2 additions and 1 deletions
|
@ -442,7 +442,8 @@ URL URLParser::parse(StringView raw_input, Optional<URL> const& base_url, Option
|
|||
break;
|
||||
// -> relative state, https://url.spec.whatwg.org/#relative-state
|
||||
case State::Relative:
|
||||
// FIXME: 1. Assert: base’s scheme is not "file".
|
||||
// 1. Assert: base’s scheme is not "file".
|
||||
VERIFY(base_url->scheme() != "file");
|
||||
|
||||
// 2. Set url’s scheme to base’s scheme.
|
||||
url->m_scheme = base_url->m_scheme;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue