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

tbranyen / diffhtml / 318 / 1
94%
master: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/packages/diffhtml-devtools/sha.js-2.4.12
DEFAULT BRANCH: master
Ran 09 Jun 2016 09:47PM UTC
Files 19
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

09 Jun 2016 09:45PM UTC coverage: 93.596% (+0.1%) from 93.457%
318.1

push

travis-ci

tbranyen
Fixes bugs with tagged template helper and escape

The tagged template helper will now escape any interpolated text values.
This is a safer approach to directly injecting markup. If you wish to
embed raw markup you can use the `html` method directly like so:

    function render() {
      let escaped = '<script>window.alert('xss')</script>';
      let unescaped = '<center>of attention</center>';

      outerHTML(document.body, html`<body>
        <p>Escaped: ${escaped}</p>
        <p>Unescaped: ${html(unescaped)}</p>
      </body>`);
    }

    render();

This patch also addresses two bugs with the parser. Text preceding the
first defined element would be discarded. Another bug was with two
dynamic interpolated values being right next to eachother not
transforming properly.

760 of 812 relevant lines covered (93.6%)

1290.91 hits per line

Source Files on job 318.1
  • Tree
  • List 0
  • Changed 15
  • Source Changed 2
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 318
  • Travis Job 318.1
  • fc86ed2e on github
  • Prev Job for on escape-tagged-input (#315.1)
  • Next Job for on escape-tagged-input (#319.1)
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