Skip to content

Commit 569c975

Browse files
committed
Fix a URL code-unit check when parsing opaque paths
1 parent ff5c725 commit 569c975

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/url-state-machine.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,10 +1039,7 @@ URLStateMachine.prototype["parse opaque path"] = function parseOpaquePath(c) {
10391039
this.url.fragment = "";
10401040
this.state = "fragment";
10411041
} else {
1042-
// TODO: Add: not a URL code point
1043-
if (!isNaN(c) && c !== p("%")) {
1044-
this.validationErrors.push("invalid-URL-unit");
1045-
}
1042+
// TODO: If c is not the EOF code point, not a URL code point, and not U+0025 (%), invalid-URL-unit validation error.
10461043

10471044
if (c === p("%") &&
10481045
(!infra.isASCIIHex(this.input[this.pointer + 1]) ||

0 commit comments

Comments
 (0)