Skip to content

Commit d0ea411

Browse files
authored
Add URL.canParse() feature (#996)
1 parent ecc5003 commit d0ea411

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated from: url-canparse.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
name: URL.canParse()
5+
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.
6+
spec: https://url.spec.whatwg.org/#dom-url-canparse
7+
status:
8+
baseline: low
9+
baseline_low_date: 2023-12-07
10+
support:
11+
chrome: "120"
12+
chrome_android: "120"
13+
edge: "120"
14+
firefox: "115"
15+
firefox_android: "115"
16+
safari: "17"
17+
safari_ios: "17"
18+
compat_features:
19+
- api.URL.canParse_static
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: URL.canParse()
2+
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.
3+
spec: https://url.spec.whatwg.org/#dom-url-canparse
4+
compat_features:
5+
- api.URL.canParse_static

0 commit comments

Comments
 (0)