diff --git a/README.md b/README.md index 21055536..105894ed 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ mithril.js [![NPM Version](https://img.shields.io/npm/v/mithril.svg)](https://ww ## What is Mithril? -A modern client-side Javascript framework for building Single Page Applications. It's small (8.42 KB gzipped), fast and provides routing and XHR utilities out of the box. +A modern client-side Javascript framework for building Single Page Applications. It's small (8.43 KB gzipped), fast and provides routing and XHR utilities out of the box. Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍. diff --git a/mithril.js b/mithril.js index 7bab017d..a953152b 100644 --- a/mithril.js +++ b/mithril.js @@ -843,7 +843,7 @@ var coreRenderer = function($window) { if (key2[0] === "o" && key2[1] === "n") return updateEvent(vnode, key2, value) if ((old === value && !isFormAttribute(vnode, key2)) && typeof value !== "object" || value === undefined) return var element = vnode.dom - if (key2.slice(0, 6) === "xlink:") element.setAttributeNS("http://www.w3.org/1999/xlink", key2.slice(6), value) + if (key2.slice(0, 6) === "xlink:") element.setAttributeNS("http://www.w3.org/1999/xlink", key2, value) else if (key2 === "style") updateStyle(element, old, value) else if (key2 in element && !isAttribute(key2) && ns === undefined && !isCustomElement(vnode)) { if (key2 === "value") { diff --git a/mithril.min.js b/mithril.min.js index 0885ab90..5a8f5c34 100644 --- a/mithril.min.js +++ b/mithril.min.js @@ -28,18 +28,18 @@ y.normalize(e._state.view.call(e.state,e));if(e.instance===e)throw Error("A view t.createDocumentFragment();if(0