Releases: cloudflare/lol-html
Releases · cloudflare/lol-html
v2.2.0
- Updated cssparser and selectors dependencies
- Adopted
cargo-c
for building the C API
- Added WASM/JS API
- An invalid
/>
syntax will be removed when content is added to an HTML element
v2.1.0
- Added streaming handlers.
- Only allow changing the charset once with the
<meta>
tag, in accordance with the HTML spec.
- Fixed parsing of invalid elements in
<svg>
and <math>
.
v2.0.0
- Added the ability for the rewriter to be
Send
.
The send
module contains the utilities for that.
v1.1.1
Fixed
- Ensure that
TagScanner::is_in_end_tag
resets when changing parsers.
v1.1.0
Added
- Added ability to get the tag and attribute names with the original casing.
v1.0.1
Fixed
- The C API's new
lol_html_element_add_end_tag_handler()
function now sets the last error retrievable by lol_html_take_last_error()
if it is called on an element that can have no end tag.
v1.0.0
Yes, you got that right: this is the first 1.x release! From now on you should expect this project to adhere to
the semantic versioning spec (we have been somewhat relaxed about that in the past).
Added
- Added
Element::end_tag_handlers()
which allows better control over the end tag handlers.
Changed
- Removed
Element::on_end_tag()
and Element::add_on_end_tag()
in favor of the newly added
Element::end_tag_handlers()
.
v0.4.0
Added
- Added method
TextChunk::as_mut_str()
and TextChunk::set_str()
for in-place modifications to the text in a
TextChunk
. (#175)
Changed
- Modified method
Element::on_end_tag()
to support multiple handlers. This is a breaking change since the old
semantics of the method was to overwrite any previously set handler. (#177)
v0.3.3
Added
- Support dynamic charset change on meta tags in HtmlRewriter. (#162)
- Add
Element::can_have_content
. (#163)