Changed the svg/mathml handling to more closely mirror the parser.