Skip to content

2.0.0

Compare
Choose a tag to compare
@straker straker released this 16 Oct 06:17
· 21 commits to master since this release

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