Firefox vs Chrome JavaScript URL validaion with `new URL()`
I’m trying to validate URL’s in JavaScript and according to MDN JavaScript’s URL
API is compatible with Chromium browsers and Firefox. However the behaviour varies between the two browsers. Specifically it seems like Chromium browsers are far more lenient and automatically apply encoding and Firefox doesn’t.
Firefox vs Chrome JavaScript URL validaion with `new URL()`
I’m trying to validate URL’s in JavaScript and according to MDN JavaScript’s URL
API is compatible with Chromium browsers and Firefox. However the behaviour varies between the two browsers. Specifically it seems like Chromium browsers are far more lenient and automatically apply encoding and Firefox doesn’t.