MediaWiki talk:Common.js

Split error
Hi, someone posted a help request at CC, and I traced the problem to the toggleInit function:

This stops on an error, because sometimes className is a string, but sometimes className is an SVGAnimatedString, which can't be split. Try this instead:

getAttribute('class') always returns a string that can be split. Rigel Kent (talk) 00:05, November 9, 2015 (UTC)