mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-26 01:25:22 +02:00
LibURL: Make percent_encode return a String
This simplifies a bunch of places which were needing to error check and convert from a ByteString to String. (cherry picked from commit 84a7fead0eefd967d4319f4d71c0a0ca3095d2d1)
This commit is contained in:
committed by
Nico Weber
parent
1a7a5e5172
commit
db4bab8041
@@ -114,7 +114,7 @@ void HTMLHyperlinkElementUtils::set_username(StringView username)
|
||||
return;
|
||||
|
||||
// 4. Set the username given this’s URL and the given value.
|
||||
MUST(url->set_username(username));
|
||||
url->set_username(username);
|
||||
|
||||
// 5. Update href.
|
||||
update_href();
|
||||
@@ -151,7 +151,7 @@ void HTMLHyperlinkElementUtils::set_password(StringView password)
|
||||
return;
|
||||
|
||||
// 4. Set the password, given url and the given value.
|
||||
MUST(url->set_password(password));
|
||||
url->set_password(password);
|
||||
|
||||
// 5. Update href.
|
||||
update_href();
|
||||
|
||||
Reference in New Issue
Block a user