Closed sentry-io[bot] closed 1 week ago
This looks like a bug in Web where element.className
may be null
. I have seen before where element.className
is null or undefined, even though MDN doesn't spec this AFAICT.
OK, found it! It is because the user touches an SVG element on the page:
className can also be an instance of SVGAnimatedString if the element is an SVGElement.
In the Keyman Developer test window, the hamburger menu icon is an SVG element. Touching that is enough to trigger this error. We should test the property type before attempting to call string functions on it, or wrap it.
Sentry Issue: KEYMAN-DEVELOPER-1SN