Re: [whatwg/url] Basic URL Parse point 1 (#130)

Oh, I see.
So this is implicitly checking if *state override* was given?

>From my understanding it currently works like this

Call `basic URL parse` with `input`
> * `url` is a new URL since `url` was not given

> * Removes invalid leading/trailing characters on input

> * (...) (parsing)

> * returns the new `url`

Call `basic URL parse` with `input` and `url`
> * `url` given so don't remove invalid leading/trailing chars wether *state override* was given or not

> * (...) (parsing)*

> returns the modified `url`

Basically, if you pass an `url` to the `basic URL parser` it won't remove leading/trailing characters
even if *state override* was not given.

Correct me if I'm wrong

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/130#issuecomment-229938971

Received on Friday, 1 July 2016 12:53:49 UTC