mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
LibURL: Remove not particuarly useful NOTE
This doesn't seem like something we will neccessarily do in the URL class anyway due to performance reasons - unless strictly needed (like for the DOMURL implementation).
This commit is contained in:
parent
cfa8a8cea2
commit
670ce3ebb1
Notes:
github-actions[bot]
2024-08-05 16:22:28 +00:00
Author: https://github.com/shannonbooth
Commit: 670ce3ebb1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/973
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 0 additions and 5 deletions
|
@ -791,11 +791,6 @@ ErrorOr<String> Parser::percent_encode_after_encoding(StringView input, PercentE
|
||||||
|
|
||||||
// https://url.spec.whatwg.org/#concept-basic-url-parser
|
// https://url.spec.whatwg.org/#concept-basic-url-parser
|
||||||
// NOTE: This parser assumes a UTF-8 encoding.
|
// NOTE: This parser assumes a UTF-8 encoding.
|
||||||
// NOTE: Refrain from using the URL classes setters inside this algorithm. Rather, set the values directly. This bypasses the setters' built-in
|
|
||||||
// validation, which is strictly unnecessary since we set m_valid=true at the end anyways. Furthermore, this algorithm may be used in the
|
|
||||||
// future for validation of URLs, which would then lead to infinite recursion.
|
|
||||||
// The same goes for base_url, because e.g. the port() getter does not always return m_port, and we are interested in the underlying member
|
|
||||||
// variables' values here, not what the URL class presents to its users.
|
|
||||||
URL Parser::basic_parse(StringView raw_input, Optional<URL> const& base_url, Optional<URL> url, Optional<State> state_override)
|
URL Parser::basic_parse(StringView raw_input, Optional<URL> const& base_url, Optional<URL> url, Optional<State> state_override)
|
||||||
{
|
{
|
||||||
dbgln_if(URL_PARSER_DEBUG, "URL::Parser::parse: Parsing '{}'", raw_input);
|
dbgln_if(URL_PARSER_DEBUG, "URL::Parser::parse: Parsing '{}'", raw_input);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue