Skip to content

Commit 6a6b9da

Browse files
committed
Fix percent encoding of fragments (closes #491)
> test result: FAILED. 637 passed; 76 failed; 0 ignored; 0 measured
1 parent 12526d5 commit 6a6b9da

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/parser.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,14 +1311,8 @@ impl<'a> Parser<'a> {
13111311
self.log_violation(SyntaxViolation::NullInFragment)
13121312
} else {
13131313
self.check_url_code_point(c, &input);
1314-
self.serialization.extend(utf8_percent_encode(
1315-
utf8_c,
1316-
// FIXME: tests fail when we use the FRAGMENT set here
1317-
// as defined in the spec as of 2019-07-17,
1318-
// likely because tests are out of date.
1319-
// See https://github.com/servo/rust-url/issues/290
1320-
CONTROLS,
1321-
));
1314+
self.serialization
1315+
.extend(utf8_percent_encode(utf8_c, FRAGMENT));
13221316
}
13231317
}
13241318
}

0 commit comments

Comments
 (0)