Bug with SVG A elements

jean-daniel.fekete Apr 17, 2012 04:11AM EDT

I had to track down a bug when trying to install AddThis widgets on a page using SVG.
The function getcbn in core004.js is looking for <A> tags with a class containing the addthis_button string. However, the field className does not return the "class" attribute of the element in SVG but something else. Therefore, the indexOf(k) raises an exception.
You might want to check that the returned "A" elements are HTML and not SVG to avoid this bug.
It was preventing AddThis to work actually.

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Apr 17, 2012 03:52PM EDT
Can you link to an example page or post some code? That would make it a lot easier for our developers to fix.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers