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

fb55 / htmlparser2 / 323 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 21 Oct 2018 09:03PM UTC
Files 8
Run time 0s
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

21 Oct 2018 09:02PM UTC coverage: 95.921% (-0.08%) from 96.0%
323.2

push

travis-ci

fb55
<a href="https://github.com/fb55/htmlparser2/commit/<a class=hub.com/fb55/htmlparser2/commit/76895d59feaac2017f5e4c3508de34bb66df037f">76895d59f<a href="https://github.com/fb55/htmlparser2/commit/76895d59feaac2017f5e4c3508de34bb66df037f">&quot;&gt;Correctly handle SVG (and MathML) tag closing (#254)

* Use xmlmode for svg

consider _lowerCaseTagNames

removed 2nd test as it&amp;#39;s no longer needed

* more robustnes

* Made auto-xmlMode optional

* Correctly handle self-closing SVG tags

SVG and MathML in HTML doesn&amp;#39;t trigger a full HTML parser,
but it does force self-closing tags to be recognized.

In contrast, the old approach of treating SVG shapes
as void elements resulted in serious errors.
See issue #187

I&amp;#39;m running tests from cheerio/dom-serializer,
but if they could be adapted to this repo,
that would be even better.

* Test for child element inside SVG shapes

Since this was another failing case from
the former assumption of self-closing tags.

Still TODO: handle mixed-case element/attribute names
See https://github.com/cheeriojs/dom-serializer/pull/76/commits/</a><a class="double-link" href="https://github.com/fb55/htmlparser2/commit/<a class="double-link" href="https://github.com/fb55/htmlparser2/commit/6b8ea86259e60b693d45624ac8a9e06c52f9f65b">6b8ea8625</a>">6b8ea8625</a><a href="https://github.com/fb55/htmlparser2/commit/76895d59feaac2017f5e4c3508de34bb66df037f">
for the list and an example of handling them at serialization.

574 of 613 branches covered (93.64%)

870 of 907 relevant lines covered (95.92%)

580.31 hits per line

Source Files on job 323.2
  • Tree
  • List 0
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 308
  • Travis Job 323.2
  • 76895d59 on github
  • Prev Job for on master (#316.3)
  • Next Job for on master (#324.5)
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