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

cheeriojs / cheerio / 30449268863
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: chore/eslint-config-0.5
DEFAULT BRANCH: main
Ran 29 Jul 2026 11:53AM UTC
Jobs 1
Files 16
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

29 Jul 2026 11:28AM UTC coverage: 99.558%. First build
30449268863

Pull #5379

github

fb55
fix(static): let $.html() keep the instance parser mode

`html()` built its options as `{ ...this._options, ...flattenOptions(options) }`.
`flattenOptions(undefined)` returns the module-level defaults, which carry
`_useHtmlParser2: false`, so the spread overwrote the instance's parser
flag and an htmlparser2-backed instance serialized through parse5. Raw
text was entity-escaped and void elements gained closing tags:

  load('<style>a < b && c > d</style><p>x<br>y</p>', { xmlMode: true })
  $.html(undefined, { xmlMode: false })
  // was: <style>a &lt; b &amp;&amp; c &gt; d</style><p>x<br>y</br></p>

Pass the instance options as the base instead, which is what
`flattenOptions` takes its second argument for. `flattenOptions(undefined,
undefined)` still returns the defaults, so `html.call(null)` is unchanged.
Pull Request #5379: fix(static): let $.html() keep the instance parser mode

262 of 262 branches covered (100.0%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

865 of 870 relevant lines covered (99.43%)

314.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30449268863.1 29 Jul 2026 11:53AM UTC 16
99.56
GitHub Action Run
Source Files on build 30449268863
  • Tree
  • List 16
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30449268863
  • Pull Request #5379
  • Next Build on fix/html-respects-instance-parser (#30449610951)
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