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

OWASP / java-html-sanitizer / #17
94%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2019 02:57PM UTC
Jobs 1
Files 43
Run time 7s
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

pending completion
#17

push

mikesamuel
Properly parse srcset attributes

Fixes issue #112

Previously, extra URL handling for `src`, `href` and related attributes
was naively applied to `srcset`.

This failed safe but mangled content.

I consolidated (in a previous commit) the code that ensures that URL and `style`
attributes have extra checks done: the global URL and style policies
respectively.

This commit adds special handling for srcset which uses the global URL policy
to vet each URL policy and leaves the metadata portion alone.

Commas in the middle of URLs in a `srcset` value will be escaped to `%2c`.

4094 of 4443 relevant lines covered (92.14%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #17.1 25 Mar 2019 02:57PM UTC 0
92.14
Source Files on build #17
Detailed source file information is not available for this build.
  • Back to Repo
  • 2ca42843 on github
  • Prev Build on master (#205)
  • Next Build on master (#206)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc