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

Binding between MX:XML replaces node's localName

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            adobejira Adobe JIRA

            Dates

              Created:
              Updated:

              Slack

                Issue deployment