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

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

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

Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/15276205 319.1 09 Jun 2016 09:48PM UTC 0
93.6
Travis Job 319.1
Source Files on build 319
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #319
  • 7569e833 on github
  • Prev 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