1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:57:46 +00:00

LibWeb: Add spec link for Web::URL::url_decode

This commit is contained in:
Shannon Booth 2023-06-25 14:12:34 +12:00 committed by Andreas Kling
parent be9fcaf92d
commit e99c0ddb0e

View file

@ -49,6 +49,8 @@ ErrorOr<String> url_encode(Vector<QueryParam> const& pairs, AK::URL::PercentEnco
return builder.to_string();
}
// https://url.spec.whatwg.org/#concept-urlencoded-parser
// The application/x-www-form-urlencoded parser takes a byte sequence input, and then runs these steps:
ErrorOr<Vector<QueryParam>> url_decode(StringView input)
{
// 1. Let sequences be the result of splitting input on 0x26 (&).