node/test/fixtures/wpt
Ali Hassan 8b4c4e825c
url: implement parse method for safer URL parsing
Implement the static parse method as per the WHATWG URL specification.
Unlike the URL constructor, URL.parse does not throw on invalid input,
instead returning null. This behavior allows safer parsing of URLs
without the need for try-catch blocks around constructor calls. The
implementation follows the steps outlined in the WHATWG URL standard,
ensuring compatibility and consistency with web platform URL parsing
APIs.

Fixes: https://github.com/nodejs/node/issues/52208
Refs: https://github.com/whatwg/url/pull/825
PR-URL: https://github.com/nodejs/node/pull/52280
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2024-04-13 12:57:12 +00:00
..
common
compression test,stream: enable compression WPTs 2023-11-12 10:01:50 +00:00
console
dom
encoding test: update encoding web-platform tests 2023-06-05 22:52:02 +00:00
fetch/data-urls/resources
FileAPI test: update FileAPI web-platform tests 2023-06-05 19:44:00 +00:00
hr-time
html/webappapis
interfaces test: update WPT files for WebIDL tests 2023-11-19 07:36:31 +00:00
media test,stream: enable compression WPTs 2023-11-12 10:01:50 +00:00
performance-timeline
resource-timing
resources test: update WPT files for WebIDL tests 2023-11-19 07:36:31 +00:00
streams stream: implement min option for ReadableStreamBYOBReader.read 2024-01-04 12:57:14 +01:00
url url: implement parse method for safer URL parsing 2024-04-13 12:57:12 +00:00
user-timing test: update user-timing web-platform tests 2023-06-05 18:04:35 +00:00
wasm
WebCryptoAPI test,crypto: update WebCryptoAPI WPT 2024-01-22 10:42:30 +00:00
webidl/ecmascript-binding/es-exceptions
webmessaging/broadcastchannel
.gitignore
LICENSE.md
README.md url: implement parse method for safer URL parsing 2024-04-13 12:57:12 +00:00
versions.json url: implement parse method for safer URL parsing 2024-04-13 12:57:12 +00:00

Web Platform Test Fixtures

The files in this folder, including this document, are generated by git node wpt.

This folder contains a subset of the Web Platform Tests for the implementation of Web APIs in Node.js.

See test/wpt for information on how these tests are run.

Last update: