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

FullHuman / purgecss / 43523182082
95%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 10:57PM UTC
Jobs 1
Files 9
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

13 Nov 2026 10:55PM UTC coverage: 94.315% (+0.02%) from 94.299%
43523182082

push

github

web-flow
fix(purgecss-from-html): split on HTML whitespace, keep whole attribute values (#1592)

`purgecss-from-html` split the class, id and other attribute values on spaces only. A class next to a new line or a tab, e.g. in a class list written over several lines, was extracted with it (`card\n`, `active\tshadow`), so PurgeCSS removed the rules of classes used in the HTML. The values are now split on the characters HTML uses to separate classes (space, tab, new line, form feed, carriage return), and the empty strings left by leading, trailing or repeated whitespace are dropped. `\s` is not used: it also matches the no-break space, which is part of a class name.

Only the words of an attribute value were added to `attributes.values`, never the value itself, so selectors matching a value of several words, e.g. `[title="hello world"]`, `[title^="hello wo"]`, `[title$="lo world"]` or `[class="card active"]`, were removed although the HTML has that value. The whole value is now also added when it isn't its only word, i.e. when it has whitespace or is empty; the empty case keeps `img[alt=""]`, `a[href=""]` or `[data-state=""]` as before.

Docs: the extractors page (English and French) imported the HTML extractor with a named import, but the package only has a default export, so a config file with that line failed with "Named export 'purgeCSSFromHtml' not found". The example now uses the default import.

Two patch changesets for `purgecss-from-html`, one per fix.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Floriel <Ffloriel@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

865 of 966 branches covered (89.54%)

Branch coverage included in aggregate %.

910 of 916 relevant lines covered (99.34%)

10851.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 43523182082.1 13 Nov 2026 10:57PM UTC 18
92.66
GitHub Action Run
Source Files on build 43523182082
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43523182082
  • 5b8a29b2 on github
  • Prev Build on v9.1.0 (#42405533970)
  • Next Build on main (#43592841378)
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