Skip to content

Instantly share code, notes, and snippets.

@ExE-Boss
Created June 29, 2018 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ExE-Boss/ca044a52821b8ae46a6e75ccc851a302 to your computer and use it in GitHub Desktop.
Save ExE-Boss/ca044a52821b8ae46a6e75ccc851a302 to your computer and use it in GitHub Desktop.
A brief features comparison between hyperHTML and lit-html
hyperHTML lit-html
released March 2017 August 2017
version 2.5.0 0.7.1
license ISC BSD 3-Clause License
compatibility template literals Edge 13+, FF 34+, CH 41+, SF 9.1+, iOS 9.2+ Edge, FF 55+, CH 41+, SF 9.1+, iOS 9.2+
compatibility transpiled IE9+ FF 34+, WK (Android 4+), CH, SF, iOS 8+ template literals only IE11/Edge, FF 55+, CH (CH for Android), SF 9+, iOS 9+ library and template literals
tests Build Status Coverage Status Build Status
size 4.8k brotli - transpiled and usable as script 2.2k unbundled ESM + extended 1.6k + repeat 1.6k
code style ES2015 Module
bundled/compatible with ESM, CJS and ES3
TypeScript / ES2015 Module
not pre bundled
⚑️ BASIC FEATURES
production ready πŸ”Ž βœ…
no transpilers πŸ”Ž βœ…
no polyfills πŸ”Ž βœ…
self closing tags πŸ”Ž βœ…
smart parser: once per template literal πŸ”Ž βœ… βœ…
secure text by default πŸ”Ž βœ… βœ…
composable πŸ”Ž βœ… βœ…
extensible πŸ”Ž βœ… βœ…
asynchronous πŸ”Ž βœ… βœ…
components πŸ”Ž βœ…
⚑️ ATTRIBUTES
smart attributes πŸ”Ž βœ…
smart style attribute πŸ”Ž βœ…
regular attributes πŸ”Ž βœ… βœ…
boolean attributes πŸ”Ž βœ… ⚠️
special attributes πŸ”Ž βœ… ⚠️
events attributes πŸ”Ž βœ… ⚠️
attribute w/out quotes πŸ”Ž βœ… βœ…
partial attributes πŸ”Ž βœ…
⚑️ CONTENT
smart diffing πŸ”Ž βœ…
smart content πŸ”Ž βœ… βœ…
reliable content πŸ”Ž βœ… βœ…
html content πŸ”Ž βœ… βœ…
nested content πŸ”Ž βœ… βœ…
repeated content πŸ”Ž βœ… ℹ️
SVG πŸ”Ž βœ… βœ…
partial Table πŸ”Ž βœ… βœ…
temporary content πŸ”Ž βœ… βœ…
conditional content πŸ”Ž βœ… βœ…
weakly referenced content πŸ”Ž βœ…
adoptable content πŸ”Ž ℹ️
⚑️ EXTRAS
Custom Elements HyperHTMLElement Polymer 3
SSR viperHTML ❓
Native nativeHTML ❓
BE DOM Compatibility basicHTML, jsdom ❓
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment