whatwg / urlpattern

URL Pattern Standard
https://urlpattern.spec.whatwg.org/
Other
154 stars 20 forks source link

Do not initialize a URLPatternInit member to null in "initialize a URLPattern" #213

Closed jeremyroman closed 7 months ago

jeremyroman commented 7 months ago

It is not valid for the baseURL dictionary member to be null, only either absent or a USVString. Instead, this should be omitted from the dictionary altogether if no string was provided to this algorithm.

Any string which is invalid will fail later on, when it is to be parsed as a URL.

Fixes #204.

(See WHATWG Working Mode: Changes for more details.)


:boom: Error: 400 Bad Request :boom:

PR Preview failed to build. (Last tried on Jan 26, 2024, 5:11 PM UTC).

More PR Preview relies on a number of web services to run. There seems to be an issue with the following one: :rotating_light: [CSS Spec Preprocessor](https://api.csswg.org/bikeshed/) - CSS Spec Preprocessor is the web service used to build Bikeshed specs. :link: [Related URL](https://api.csswg.org/bikeshed/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fwhatwg%2Furlpattern%2F226dee4d836b2f5e54e2e8e5ad4b358f37df9b0c%2Fspec.bs&force=1&md-status=LS-PR&md-Text-Macro=PR-NUMBER%20213) _If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please [file an issue](https://github.com/tobie/pr-preview/issues/new?title=Error%20not%20surfaced%20properly&body=See%20whatwg/urlpattern%23213.)._