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

fb55 / htmlparser2 / 323
100%

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

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%)

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

870 of 907 relevant lines covered (95.92%)

2901.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 323.1 21 Oct 2018 09:03PM UTC 0
95.92
Travis Job 323.1
2 323.2 21 Oct 2018 09:03PM UTC 0
95.92
Travis Job 323.2
3 323.3 21 Oct 2018 09:03PM UTC 0
95.92
Travis Job 323.3
4 323.4 21 Oct 2018 09:03PM UTC 0
95.92
Travis Job 323.4
5 323.5 21 Oct 2018 09:03PM UTC 0
95.92
Travis Job 323.5
Source Files on build 323
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #323
  • 76895d59 on github
  • Prev Build on master (#316)
  • Next Build on master (#324)
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