Skip to content

Commit

Permalink
Incorporate editorial updates
Browse files Browse the repository at this point in the history
No behavior changes.
  • Loading branch information
domenic committed Dec 4, 2024
1 parent 0fb65e3 commit cb19f3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ whatwg-url is a full implementation of the WHATWG [URL Standard](https://url.spe

## Specification conformance

whatwg-url is currently up to date with the URL spec up to commit [eee49fd](https://github.com/whatwg/url/commit/eee49fdf4f99d59f717cbeb0bce29fda930196d4).
whatwg-url is currently up to date with the URL spec up to commit [ffee2e2](https://github.com/whatwg/url/commit/ffee2e21c7034cc72d813d45dd85637e70bbeeec).

For `file:` URLs, whose [origin is left unspecified](https://url.spec.whatwg.org/#concept-url-origin), whatwg-url chooses to use a new opaque origin (which serializes to `"null"`).

Expand Down
4 changes: 2 additions & 2 deletions lib/url-state-machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ function serializeIPv6(address) {
return output;
}

function parseHost(input, isNotSpecialArg = false) {
function parseHost(input, isOpaque = false) {
if (input[0] === "[") {
if (input[input.length - 1] !== "]") {
return failure;
Expand All @@ -334,7 +334,7 @@ function parseHost(input, isNotSpecialArg = false) {
return parseIPv6(input.substring(1, input.length - 1));
}

if (isNotSpecialArg) {
if (isOpaque) {
return parseOpaqueHost(input);
}

Expand Down

0 comments on commit cb19f3e

Please sign in to comment.