You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The URL.parse() static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
If the given base URL or the resulting URL are not parsable and valid URLs, null is returned. This is an alternative to using the URL() constructor to construct a URL within a try...catch block, or using canParse() to check the parameters and returning null if the method returns false.
It seems like a useful addition to the API and has been shipped so far by Chrome and Firefox, with pending experiments from Safari and Opera.
The text was updated successfully, but these errors were encountered:
About 5 months ago in whatwg/url@58acb06, the static method
URL.parse
was added to the spec.Quoting from MDN:
It seems like a useful addition to the API and has been shipped so far by Chrome and Firefox, with pending experiments from Safari and Opera.
The text was updated successfully, but these errors were encountered: