Skip to content

Commit

Permalink
Add URL.canParse() feature (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbeck authored Apr 29, 2024
1 parent ecc5003 commit d0ea411
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions feature-group-definitions/url-canparse.dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated from: url-canparse.yml
# Do not edit this file by hand. Edit the source file instead!

name: URL.canParse()
description: The `URL.canParse()` static method checks whether a URL can be parsed into a valid `URL` object. It's an alternative to calling `new URL()` in a `try…catch` statement.
spec: https://url.spec.whatwg.org/#dom-url-canparse
status:
baseline: low
baseline_low_date: 2023-12-07
support:
chrome: "120"
chrome_android: "120"
edge: "120"
firefox: "115"
firefox_android: "115"
safari: "17"
safari_ios: "17"
compat_features:
- api.URL.canParse_static
5 changes: 5 additions & 0 deletions feature-group-definitions/url-canparse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: URL.canParse()
description: The `URL.canParse()` static method checks whether a URL can be parsed into a valid `URL` object. It's an alternative to calling `new URL()` in a `try…catch` statement.
spec: https://url.spec.whatwg.org/#dom-url-canparse
compat_features:
- api.URL.canParse_static

0 comments on commit d0ea411

Please sign in to comment.