Skip to content

Propagate bozo flag from entry-level fields #70

@bug-ops

Description

@bug-ops

Summary

Follow-up from #64read_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions