From 28c0abf4578097522c928622b8074f2e4a2341f8 Mon Sep 17 00:00:00 2001 From: Ioannis Charalampidis Date: Wed, 8 Feb 2017 22:43:09 +0100 Subject: [PATCH] Adding browser compatibility table --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5665ea1..984c48a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ > A tiny (510 byte) virtual DOM template engine for embedded projects +| IE / Edge IE / Edge | Firefox Firefox | Chrome Chrome | Safari Safari | Opera Opera | iOS Safari iOS Safari | Chrome for Android Chrome for Android | +| --------- | --------- | --------- | --------- | --------- | --------- | --------- | +| Edge 14+ | 45+ | 49+ | 9+ | 36+ | 9.2+ | 55+ **.dom** borrows some concepts from React.js (such as the re-usable Components and the Virtual DOM) and tries to replicate them with the smallest possible footprint, exploiting the ES6 javascript features. @@ -21,8 +24,6 @@ Alternatively you can just include the minified version of the library directly ((a,b,c,d,e,f,g,h,j)=>{String.prototype[d]=1,a.H=g=(k,l={},...m)=>({[d]:1,E:k,P:l[d]&&m.unshift(l)&&{C:m}||(l.C=m)&&l}),a.R=h=(k,l,m='',n,o=k.E)=>k.trim?l.appendChild(b.createTextNode(k)):o.call?(n=(p=[{}],q=p[1]==o?p[0]:(e[m]=[{}])[0],r)=>r=h(o(k.P,q,s=>l.replaceChild(n(e[m]=[c.assign(q,s),o]),r)),l,m))(e[m]):c.keys(k.P).reduce((p,q,r,s,t=k.P[q])=>('C'==q?t.map((u,v)=>h(u,p,m+'.'+v)):'style'==q?c.assign(p[q],t):p[q]=t,p),l.appendChild(b.createElement(o))),j=k=>new Proxy(k,{get:(l,m,n)=>j((...o)=>((n=l(...o)).P.className=[n.P.className]+' '+m,n))}),'a.b.button.i.span.div.img.p.h1.h2.h3.h4.table.tr.td.th.ul.ol.li.form.input.label.select.option'.split('.').map(k=>a[k]=j(g.bind(a,k)))})(window,document,Object,Symbol(),{}); ``` -## Support - ## Examples If you already know React.js, the following examples can help you understand how