Hi, Imagine in some future time when someone developed a path syntax that was somewhat similar, but not quite identical to the current SVG path attribute, perhaps it added some new functionality. If I wanted to author an implementation of this within script in SVG (perhaps with RCC) then I'd be forced to parse the d attribute myself even though only maybe 1 in 1000 actually used this new syntax, the rest were identical. To make this easier, I'd like el=doc.createElementNS(svgNS,"path") el.setAttributeNS(null, "d","Y 10") To throw an error (which I could then catch and only use my slow parser when the syntax differs.) This might be a little troublesome as it's just using setAttributeNS and modifying this to throw such errors may not be ideal. So a createSVGPath(str) method on a path may be more appropriate and that could throw the error. Jim.Received on Wednesday, 29 October 2003 16:59:21 GMT
This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:26 GMT