alohaeditor/Aloha-Editor — pull request #1154 by cecilialam (2014-04-07 15:53:22+00:00)
Title: working with SVG element

When I tried to work with a SVG element in the editor, I get the following error.
Uncaught TypeError: Object # has no method 'indexOf'

Apparently, SVG element's className is not a string but an object. I update the pruneElem() function and the editor is happy. The following is the SVG element I used for testing.
< svg width="300" height="200">
< polygon points="100,10 40,180 190,60 10,60 160,180"
style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" />
< /svg>
from http://www.w3schools.com/html/html5_svg.asp

Please consider the pull request. Thanks.