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

Binding between MX:XML replaces node's localName

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:
      1. Create 2 mx:XML tags and use {} to bind from one to the other.

      Actual Results:
      Binding completely replaces the node, instead of just the contents.

      Expected Results:
      Visually looking at the xml, I would assume just contents would be replaced.

      Workaround (if any):
      Cast the XML to a string.

      Example:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="applicationCompleteHandler()">
      <mx:Script>
      <![CDATA[
      private function applicationCompleteHandler():void

      { trace('----Unexpected results----'); trace(unexpectedResults); trace(''); trace('----Expected results-----'); trace(expectedResults); }

      ]]
      >
      </mx:Script>
      <mx:XML id="translations">
      <root>
      <bug>This seems like a bug</bug>
      </root>
      </mx:XML>
      <mx:XML id="unexpectedResults">
      <root>
      <label>

      {translations.bug}

      </label>
      </root>
      </mx:XML>
      <mx:XML id="expectedResults">
      <root>
      <label>

      {String(translations.bug)}

      </label>
      </root>
      </mx:XML>
      </mx:Application>

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: