When constructing a URL
, 256
is sometimes accepted as part of an IPv4 address.
#51514
Labels
confirmed-bug
Issues with confirmed bugs.
whatwg-url
Issues and PRs related to the WHATWG URL implementation.
Version
v21.4.0
Platform
Darwin chug.lan 22.6.0 Darwin Kernel Version 22.6.0: Tue Nov 7 21:42:27 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_ARM64_T8103 arm64
Subsystem
url
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always reproducible.
What is the expected behavior? Why is that the expected behavior?
Expected to throw an error, e.g., if the
256
isn't the final component, it throws like this:What do you see instead?
Additional information
Pretty sure this is considered a syntax error by RFC3986, which defines IPv4 address components like this:
The text was updated successfully, but these errors were encountered: