This commit is contained in:
jif-oai
2026-02-24 12:50:36 +00:00
parent a670d313a6
commit 93e4b538a3
7 changed files with 165 additions and 14 deletions

View File

@@ -92,5 +92,9 @@ assert_eq!(out.extracted[0].content, "x");
- No tag attributes
- No nested tag support
- Unterminated open tags are auto-closed on `finish()` (buffered content is returned as extracted)
- `Utf8StreamParser::push_bytes(...)` rolls back the entire pushed chunk on invalid UTF-8 so the
wrapped parser does not observe a partial prefix from that chunk
- `Utf8StreamParser::into_inner()` returns an error if undecoded UTF-8 bytes are still buffered;
use `into_inner_lossy()` only if you intentionally want to drop buffered partial bytes
- `StreamTextParser::push_str(...)` accepts only valid UTF-8 (`&str`); use `Utf8StreamParser` if your
upstream source yields raw bytes