nathanboktae / chai-dom

DOM assertions for the Chai assertion library using vanilla JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checking classes on SVG elements is broken.

rayd opened this issue · comments

It looks like the recent change to check for classes using el.className breaks when the element is an SVG element. In Chrome it at least returns an instance of SVGAnimatedString as opposed to a normal JS string, so the split function does not exist.

I figured there would be corner cases like this and esp with string splitting. I reverted #13.

Sorry to be annoying - looks like 1.4.2 might not have been published to npm. Thanks!

I just published it.

On Mon, Aug 22, 2016 at 1:41 PM, Ray Di Ciaccio notifications@github.com
wrote:

Sorry to be annoying - looks like 1.4.2 might not have been published to
npm. Thanks!


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
#14 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB5a1-xjAgNFl8AEF4aBjZYf6t55P1_Vks5qigmNgaJpZM4JqPRK
.