Repository navigation
Add regression coverage for script close variants - #219
TorMatzAndren wants to merge 2 commits into
Conversation
|
Thanks for this — the extra coverage (mixed-case tags, 1. Please rebase onto 2. The whitespace payloads aren't testing whitespace. In a JS string literal, Optional: the three Happy to merge once those are in. Thanks again! |
|
Follow-up to #219, addressing the maintainer's October 22 review. Rebased the regression coverage onto current The updated test covers mixed-case script-closing tags, slash-delimited variants, and actual TAB/LF/CR/FF whitespace characters. It also uses a case-insensitive assertion to verify that serialized output contains no unsafe script-closing sequence, while checking that deserialization preserves the original payload. Only Verification: Thanks for the review and guidance! |
|
@TorMatzAndren Do you have an updated commit to push? |
6e5b830 to
2c3bae1
Compare
|
Thanks for reopening #219! I've now updated the original PR branch against current The full test suite passes (119/119). The redundant coverage introduced upstream has also been removed. Thanks again for taking another look! |
This adds regression coverage for several script-closing variants inside serialized function bodies.
The existing XSS tests already cover common
</script>cases. This expands coverage to mixed-case tags, whitespace variants, and attribute-like variants while also verifying that the serialized function still deserializes to the original payload.Tested locally with:
npm test