Html Tagged Template Versions Save

Proposal to improve the DOM creation API so developers have a cleaner, simpler, and secure interface to DOM creation and manipulation.

v2.2.0

6 years ago

minor

  • remove eval for CSP

v2.1.0

6 years ago

minor

  • optional attributes using ?=

v2.0.2

7 years ago

fix URL contextual auto-escapping preventing good URL protocols

v2.0.1

7 years ago

minor

  • fix empty attribute from crashing script

2.0.0

7 years ago

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

8 years ago

Fix substitution bug with removing attributes inside attribute loop

1.0.0

8 years ago

Official release