No, I don’t think it’s a must. Looking at the SVG spec it’s represented as a string, and the canvas implementation seems to be only represented as an Array.