Skip to content

Commit

Permalink
Support elements with namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
peteruithoven committed Jul 23, 2014
1 parent 228c4eb commit db0156c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svg.import.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
/* properly close svg tags and add them to the DOM */
well.innerHTML = raw
.replace(/\n/, '')
.replace(/<(\w+)([^<]+?)\/>/g, '<$1$2></$1>')
.replace(/<([^\s]+)([^<]+?)\/>/g, '<$1$2></$1>')

/* convert nodes to svg elements */
convertNodes(well.childNodes, this, 0, store, block)
Expand Down

0 comments on commit db0156c

Please sign in to comment.