kenchris / urlpattern-polyfill

URLPattern polyfill
https://www.npmjs.com/package/urlpattern-polyfill
MIT License
267 stars 30 forks source link

Throw on more illegal hostname code points. (#43) #57

Closed wanderview closed 2 years ago

wanderview commented 2 years ago

This makes the polyfill better conform to the list of forbidden hostname characters listed in the URL spec:

https://url.spec.whatwg.org/#forbidden-host-code-point

This change corresponds to this implementation commit:

https://chromium-review.googlesource.com/c/chromium/src/+/3152036

wanderview commented 2 years ago

@kenchris PTAL. Thanks.