lol-html
lol-html copied to clipboard
Low output latency streaming HTML parser/rewriter with CSS selector-based API
Hi, I found an input that causes an internal error when calling `rewrite_str`. I am attaching a small program that reproduces the issue (both on 0.3.1 and latest `master`). ```rust...
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.6. Changelog Sourced from regex's changelog. 1.5.6 (2022-05-20) This release includes a few bug fixes, including a bug that produced incorrect matches when a non-greedy...
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.6. Changelog Sourced from regex's changelog. 1.5.6 (2022-05-20) This release includes a few bug fixes, including a bug that produced incorrect matches when a non-greedy...
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.6. Changelog Sourced from regex's changelog. 1.5.6 (2022-05-20) This release includes a few bug fixes, including a bug that produced incorrect matches when a non-greedy...
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) from 0.8.5 to 0.8.8. Release notes Sourced from crossbeam-utils's releases. crossbeam-utils 0.8.8 Fix a bug when unstable loom support is enabled. (#787) crossbeam-utils 0.8.7 Add AtomicCell<{i*,u*}>::{fetch_max,fetch_min}. (#785) Add...
Bumps [crossbeam-deque](https://github.com/crossbeam-rs/crossbeam) from 0.8.0 to 0.8.1. Release notes Sourced from crossbeam-deque's releases. crossbeam-deque 0.8.1 Fix deque steal race condition. (https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-pqqp-xmhj-wgcw) Add Stealer::len method. (#708) Changelog Sourced from crossbeam-deque's changelog. Version...
```rust #[test] fn test() { lol_html::rewrite_str( r#" "#, lol_html::RewriteStrSettings { element_content_handlers: vec![ lol_html::element!("img", |e| { assert_eq!(e.get_attribute("alt").as_deref(), Some("Foo & Bar")); Ok(()) }), ], ..Default::default() }).unwrap(); } ``` ```rust thread 'test' panicked...
~There's some tokenizer test failures, will try to fix them~
I'm not sure if this is a feature request but I have tried using `on_end_tag` to do something after a tag has been closed. Unfortunately the handler is invoked before...