Skip to content
This repository was archived by the owner on Oct 13, 2019. It is now read-only.
This repository was archived by the owner on Oct 13, 2019. It is now read-only.

Absolute leniency #9

@mishako

Description

@mishako

Pros

  • User is never blocked by partially broken feeds they have no control over

Cons

  • Developers are used to libraries throwing exceptions if something is wrong
  • We're not spreading the culture of following the standards

Things we could be lenient about:

  • Incorrect BOM
  • Absent XML declaration
  • Incorrect declared encoding
  • Incorrect or missing XML namespaces
  • Unescaped XML entities (& instead of proper &amp)
  • Missing required tags or attributes
  • Invalid dates
  • Unexpected values

If the feed is so broken we can't fix it, we could throw an exception. Non-fatal errors can be exposed in the API, so that the user can decide if they want to treat them as fatal.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions