fix(classList): error on svg elements

Fixes #1795