Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35077

Missed case of XML assingment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Apache FalconJX 0.7.0
    • FalconJX
    • 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");
      

      Attachments

        Activity

          People

            aharui Alex Harui
            harbs Harbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: