Summary
Follow-up from #64 — read_text_str discards the bozo signal at entry-level call sites where ParsedFeed is not directly in scope.
Current behavior
Bozo flag is propagated only for feed-level fields:
- RSS:
<channel><title>, <channel><description>
- Atom:
<feed><id>
Entry-level fields silently discard the bozo signal via read_text_str:
<item>/<entry> title, summary, content, id, author, etc.
- All RSS 1.0 fields
Expected behavior
feed.bozo = true should be set when any text field in the feed contains unresolvable entities, including entry-level fields.
Implementation notes
Requires threading &mut ParsedFeed (or a bozo accumulator) through entry parsing functions (parse_entry, parse_item, parse_rss10_item). Consider a shared BozoAccumulator or passing &mut bool to avoid coupling entry parsers to ParsedFeed.
Related
Summary
Follow-up from #64 —
read_text_strdiscards the bozo signal at entry-level call sites whereParsedFeedis not directly in scope.Current behavior
Bozo flag is propagated only for feed-level fields:
<channel><title>,<channel><description><feed><id>Entry-level fields silently discard the bozo signal via
read_text_str:<item>/<entry>title, summary, content, id, author, etc.Expected behavior
feed.bozo = trueshould be set when any text field in the feed contains unresolvable entities, including entry-level fields.Implementation notes
Requires threading
&mut ParsedFeed(or a bozo accumulator) through entry parsing functions (parse_entry,parse_item,parse_rss10_item). Consider a sharedBozoAccumulatoror passing&mut boolto avoid coupling entry parsers toParsedFeed.Related