Update parser.js

Added comment for future reference
This commit is contained in:
Andrea Bogazzi 2014-08-27 23:09:31 +02:00
parent cd7bea6183
commit 4c4ba5bfe0

View file

@ -508,7 +508,10 @@
var startTime = new Date();
parseUseDirectives(doc);
/* http://www.w3.org/TR/SVG/struct.html#SVGElementWidthAttribute
* as per specs, width and height attributes are to be considered
* 100% if no value is specified.
*/
var viewBoxAttr = doc.getAttribute('viewBox'),
widthAttr = parseUnit(doc.getAttribute('width') || '100%'),
heightAttr = parseUnit(doc.getAttribute('height') || '100%'),