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

tbranyen / diffhtml / 315
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:38PM UTC
Jobs 1
Files 19
Run time 2s
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
315

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.

757 of 810 relevant lines covered (93.46%)

1293.56 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/15275904 315.1 09 Jun 2016 09:38PM UTC 0
93.46
Travis Job 315.1
Source Files on build 315
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #315
  • 14443b80 on github
  • Next Build on escape-tagged-input (#318)
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