-
Notifications
You must be signed in to change notification settings - Fork 267
Open
Description
Merging #290 as-is feels a bit scary, since some of the more subtle changes that were committed since then might be reverted.
I'd like to write some additional tests to make sure they won't be.
I went through the commit log, and these are all the changes that have happened since I made the original PR (2020-06):
These were already tested before this issue:
- Inline CData events when pretty printing
- Only concerns the writer.
$valuerename should work the same for serialization too- Parse & in cdata correctly
- Add serde tests, implement newtype and tuple serializations, fix some bugs
- Always capture "$value" key when text node is appeared in the map
- Add support for i128/u128
- Unlikely to be related; tests are likely difficult, since i128/u128 are not always available
- Deserialize raw bytes
- Serialize basic type as attributes when using serde
- use write_all instead of write
- Only concerns the writer.
These still need tests:
- Fix unescaping broken codepoints
- This likely broke the html5 test, and needs some new tests
- Add '*_with_custom_entities' versions of unescape methods
- Has some private tests, but needs tests on new public methods
- Note to self: Probably a good place to check for the billion laughs attack vulnerability too
- Put escaping html entities behind a 'escape-html' feature
- Has no tests; also kinda abuses features, as features should not change behavior of existing APIs
- Split text trim into start and end
trim_textoption becomes two options:trim_text_startandtrim_text_end- Definitely needs tests
- Accept html5 doctype
- Allows case-insensitive matching of the doctype tag
- Has tests, but they fail (likely broken by fix #270 #271)
- Unescape all existing HTML entities
- This adds quite a lot of new entities.
- It likely has nothing to do with the unbuffered code, but a test would be nice anyway.
- Add Clone for Reader
- A test would be nice to make sure nobody removes that derive by mistake
Pull requests:
Metadata
Metadata
Assignees
Labels
No labels