[ 
https://issues.apache.org/jira/browse/FLEX-35077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Harui resolved FLEX-35077.
-------------------------------
       Resolution: Fixed
    Fix Version/s: Apache FalconJX 0.7.0

0b74b6a3514bf68ab67016aa5aed5c40943f4139

> Missed case of XML assingment
> -----------------------------
>
>                 Key: FLEX-35077
>                 URL: https://issues.apache.org/jira/browse/FLEX-35077
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>            Reporter: Harbs
>             Fix For: Apache FalconJX 0.7.0
>
>
> The last line of the following code:
> {code:actionscript}
> 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";
> {code}
> compiles into:
> {code:javascript}
> rects.filter(function(node){return (node.attribute('id') == 
> 3)}).attribute('height') = "100px";
> {code}
> It should have been:
> {code:javascript}
> rects.filter(function(node){return (node.attribute('id') == 
> 3)}).setAttribute('height',"100px");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to