message: tweak viewBox invalid value.
diff: @@ -61,7 +61,9 @@ SVGParser.prototype.parse = function (xml, opt) {
  var elRoot = root;
  if (viewBox) {
  - var viewBoxArr = viewBox.split(DILIMITER_REG);
  + var viewBoxArr = trim(viewBox).split(DILIMITER_REG);
  + // Some invalid case like viewBox: 'none'.
  + if (viewBoxArr.length === 4) {
  var x = parseFloat(viewBoxArr[0] || 0);
  var y = parseFloat(viewBoxArr[1] || 0);
  var vWidth = parseFloat(viewBoxArr[2]);
  @@ -79,6 +81,7 @@ SVGParser.prototype.parse = function (xml, opt) {
  -(y + vHeight / 2) * scale + height / 2
  ];
  }
  + }
  var child = svg.firstChild;
  while (child) {
  @@ -102,6 +105,10 @@ SVGParser.prototype._parseNode = function (xmlNode, parentGroup) {
  var nodeName = xmlNode.nodeName.toLowerCase();
  + // TODO
  + // support <style>...</style> in svg, where nodeName is 'style',
  + // CSS classes is defined globally wherever the style tags are declared.
  +
  if (nodeName === 'defs') {
  // define flag
  this._isDefine = true;
  