Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The last line of the following code:
var svg:XML = <svg> <group> <rect id="1" /> <rect id="2" /> </group> <group> <rect id="3" /> <rect id="4" /> </group> </svg>; var rects:XMLList = svg..rect; rects.(@id==3).@height = "100px";
compiles into:
rects.filter(function(node){return (node.attribute('id') == 3)}).attribute('height') = "100px";
It should have been:
rects.filter(function(node){return (node.attribute('id') == 3)}).setAttribute('height',"100px");