Re: [url-tests] URL: per the standard a leading ? is removed for the search attribute setter (#5387)

The getter says

> Return U+003F (?), followed by context object’s url’s query.

So in this test, input is `??lang=fr`, the setter strips one `?` off and sets [query](https://url.spec.whatwg.org/#concept-url-query) to `?lang=fr`. Then the getter adds one back if query is non-null and non-empty. Therefore the test is correct and WebKit is wrong. Or am I missing something?

View on GitHub: https://github.com/w3c/web-platform-tests/pull/5387#issuecomment-292100213

Received on Thursday, 6 April 2017 08:07:37 UTC