Skip to content

Releases: straker/html-tagged-template

v2.2.0

22 Nov 03:19
Compare
Choose a tag to compare

minor

  • remove eval for CSP

v2.1.0

28 Sep 07:10
Compare
Choose a tag to compare

minor

  • optional attributes using ?=

v2.0.2

03 Feb 22:50
Compare
Choose a tag to compare

fix URL contextual auto-escapping preventing good URL protocols

v2.0.1

22 Jan 00:04
Compare
Choose a tag to compare

minor

  • fix empty attribute from crashing script

2.0.0

16 Oct 06:17
Compare
Choose a tag to compare

Major:

  • change return type for sibling nodes to be a DocumentFragment rather than an array. Makes it much easier to work with as inserting the value into the DOM is as simple as document.body.appendChild(el)

Minor:

  • resolve #9 and #14 by doing a regex parse of the attributes manually. Since the string has already gone through the HTML parser, the outerHTML is structured as valid DOM so spaces between attributes are required.
  • add contextual auto-escaping as per https://developers.google.com/closure/templates/docs/security
    • DOM Level 0 event properties
    • URIs and URLs
    • HTML value encoding
  • add tests for contextual auto-escaping
  • switch to use const and let
  • add comments and spacing for better visual organization
  • fixed sauce connect and coveralls reporting

1.0.1

23 Feb 20:02
Compare
Choose a tag to compare

Fix substitution bug with removing attributes inside attribute loop

1.0.0

22 Feb 20:28
Compare
Choose a tag to compare

Official release