• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

keepcosmos / readability / f66982e7503f54aff5ab72a1b97d2eda62c51d6a-PR-72
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: v1
DEFAULT BRANCH: master
Ran 24 Nov 2026 02:23PM UTC
Jobs 1
Files 26
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Nov 2026 02:22PM UTC coverage: 94.222% (+2.6%) from 91.579%
f66982e7503f54aff5ab72a1b97d2eda62c51d6a-PR-72

Pull #72

github

Valian
Reject pages in another encoding instead of extracting replacement characters

article/2 takes the bytes as UTF-8; Readability.js always gets a decoded DOM. A page in Shift_JIS
or Latin-1 came out as U+FFFD (208k of them on a real Shift_JIS page). Now, when most non-ASCII
bytes of the document aren't UTF-8 and its first <meta> that names a known encoding (WHATWG
labels) names one other than UTF-8, article/2 returns {:error, {:unsupported_charset, label}} and
readerable?/2 false. UTF-8 pages that declare another encoding, or have a few stray bytes, are
read as before. Binary input with invalid UTF-8 is now scrubbed on the tree, the same way as a
%LazyHTML{}.

Checked on 8,000 generated and mutated documents (no change) and 106 current real-world pages
(106/106 still agree with Readability.js; the two Shift_JIS pages are rejected).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #72: Readability 1.0: port of Readability.js on LazyHTML

2381 of 2527 relevant lines covered (94.22%)

128415.02 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
98.55
8.31% lib/readability.ex
Jobs
ID Job ID Ran Files Coverage
1 f66982e7503f54aff5ab72a1b97d2eda62c51d6a-PR-72.1 24 Nov 2026 02:23PM UTC 26
94.22
GitHub Action Run
Source Files on build f66982e7503f54aff5ab72a1b97d2eda62c51d6a-PR-72
  • Tree
  • List 26
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #72
  • PR Base - master (#FCB90BD9...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc