[workers-tests] URLUtils.search returns empty string, not '?' (#984)

>From the latest draft http://url.spec.whatwg.org/#dom-url-search:

>The search attribute must run these steps:
>
>If url is null, or its query is either null or the empty string, return the empty string.
>
>Return "?" concatenated with query.

And from 2012 https://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#dom-url-search

>The search attribute must run these steps:
>
>If the fatal error flag is set, or query is either null or the empty string, return the empty string.
>
>Return "?" concatenated with query.

In each of these cases, the expected result of `location.search` for url `./support/WorkerLocation.js?` is the empty string.

View on GitHub: https://github.com/w3c/web-platform-tests/pull/984

Received on Sunday, 11 May 2014 03:36:44 UTC