Last active
August 29, 2015 14:07
-
-
Save heyjinkim/562e460b40a7903a862f to your computer and use it in GitHub Desktop.
createElementNS to generate SVG in Htmlbars
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/tildeio/htmlbars/blob/master/packages/morph/lib/dom-helper.js#L129-L131 | |
if (contextualElement) { | |
this.detectNamespace(contextualElement); | |
} | |
// works if replace the above block with this: | |
if (tagName === 'svg'){ | |
this.namespace = svgNamespace; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment