Skip to content

Commit b20e852

Browse files
noxo0Ignition0o
authored andcommitted
Fix percent encoding of fragments (closes #491)
> test result: FAILED. 637 passed; 76 failed; 0 ignored; 0 measured
1 parent a6043ad commit b20e852

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
@@ -1329,14 +1329,8 @@ impl<'a> Parser<'a> {
13291329
self.log_violation(SyntaxViolation::NullInFragment)
13301330
} else {
13311331
self.check_url_code_point(c, &input);
1332-
self.serialization.extend(utf8_percent_encode(
1333-
utf8_c,
1334-
// FIXME: tests fail when we use the FRAGMENT set here
1335-
// as defined in the spec as of 2019-07-17,
1336-
// likely because tests are out of date.
1337-
// See https://github.com/servo/rust-url/issues/290
1338-
CONTROLS,
1339-
));
1332+
self.serialization
1333+
.extend(utf8_percent_encode(utf8_c, FRAGMENT));
13401334
}
13411335
}
13421336
}

0 commit comments

Comments
 (0)