← Back to release summary

URL.canParse

Category
JavaScript
Type
Chromium catches up
Status
Enabled by default (Chrome 120)
Intent stage
None

Summary

A static operation to determine whether a URL string is valid. More concise than catching an exception thrown from the URL constructor.

Standards & signals

View on chromestatus.com