Ran
|
Files
8
|
Run time
0s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<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">">Correctly handle SVG (and MathML) tag closing (#254) * Use xmlmode for svg consider _lowerCaseTagNames removed 2nd test as it&#39;s no longer needed * more robustnes * Made auto-xmlMode optional * Correctly handle self-closing SVG tags SVG and MathML in HTML doesn&#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&#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
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
---|