← Back to release summary

URL.canParse

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

WPT details: Covered under url/ directory, and functionality is close to trivial.

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

Ecosystem

View on chromestatus.com