Modified classList.js to svgclasslist.js

(older) WebKit browsers have support for inline SVG and for classList, but don't have support for classList on inline SVG elements.

What's more, .className on <svg> element returns "[object SVGAnimatedString]".

~~Even worse, this issue only seems to affect SVG elements already in the document. Creating a new one (using document.createElement('svg')) seems to have classList.~~

This issue affects Safari (tested version 5.1 on Windows) and Android browser. Probably affects other WebKit browsers too.

This issue does not affect Chrome, Opera or Firefox. These browsers work correctly.


Even if you don't accept this pull request (that's fine for me), I just wanted to raise awareness about this little-known issue. The modified svgclasslist.js script solves this issue for me.