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

OWASP / java-html-sanitizer / 292
93%
master: 94%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 13 Jul 2020 03:29PM UTC
Jobs 3
Files 44
Run time 20min
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
292

push

travis-ci

web-flow
Do not lcase element or attribute names that match SVG or MathML name… (#206)

* Do not lcase element or attribute names that match SVG or MathML names exactly

> Currently all names are converted to lowercase which is ok when
> you're using it for HTML only, but if there is an SVG image nested
> inside the HTML it breaks.  For example, when `viewBox` attribute is
> converted to `viewbox` the image is not displayed correctly.

This commit splits *HtmlLexer*.*canonicalName* into variants which preserve
items on whitelists derived from the SVG and MathML specifications, and
adjusts callers of *canonicalName* to use the appropriate variant.

Fixes #182

* add unittests for mixed-case SVG names

29 of 29 new or added lines in 6 files covered. (100.0%)

3898 of 4184 relevant lines covered (93.16%)

2.79 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/main/java/org/owasp/html/HtmlPolicyBuilder.java

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
src/main/java/org/owasp/html/HtmlLexer.java
Jobs
ID Job ID Ran Files Coverage
2 292.2 13 Jul 2020 03:29PM UTC 0
93.05
Travis Job 292.2
3 292.3 13 Jul 2020 03:30PM UTC 0
93.16
Travis Job 292.3
4 292.4 13 Jul 2020 03:30PM UTC 0
93.09
Travis Job 292.4
Source Files on build 292
  • Tree
  • List 44
  • Changed 14
  • Source Changed 7
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #292
  • eb6ef029 on github
  • Prev Build on main (#287)
  • Next Build on main (#294)
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

© 2025 Coveralls, Inc