svg: extract class name validation method in SvgStylableElement