servo / rust-url

URL parser for Rust
https://docs.rs/url/
Apache License 2.0
1.31k stars 325 forks source link

set scheme with non-tab/newline C0 controls should result in no-op #815

Open CYBAI opened 1 year ago

CYBAI commented 1 year ago

currently, we're trimming C0 controls and also whitespaces; however, leading/trailing C0 controls are invalid for setting scheme.

following tests are related wpt tests:

https://github.com/web-platform-tests/wpt/blob/f72c88ab79843a46ffdf63264e833121811f08d9/url/resources/setters_tests.json#L291-L323