Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Mac
Affected OS(s): Mac OS 10.5
Language Found: English
Description
Steps to reproduce:
1. Run the given function with the given XML node
2. Set a breakpoint on the if (true) {} line
Function:
public static function handleComplexNodesWithEmphasis(node:XML):String {
var nodeStr:String = "";
for each (var item:XML in node.children()) {
if (item.name()) {
if (item.name().localName == "Emphasis")
} else {
var s:String = item.toString();
var i:Number = s.search(/Enter your/);
if (i != -1) {
if (true) {}
}
if (item.hasSimpleContent())
else
{ //TODO? } }
}
return nodeStr;
}
Example XML Node:
<Para>
To use the status message drop-down box, click the
<Emphasis>
down arrow
</Emphasis>
and make a selection -
<Emphasis>
Validator, Reload Status, or Engine Status
</Emphasis>
. The selected type of status messages appear in the bottom right part of the main window. Refer to the following figures for examples.
</Para>
Copied from Flex debugger:
node XML
<Para>
"To use the status message drop-down box, click the"
<Emphasis>
"and make a selection -"
<Emphasis>
". The selected type of status messages appear in the bottom right part of the main window. Refer to the following figures for examples."
Actual Results:
The debugger stops on the breakpoint when "Enter your" was NOT in the string.
We've tried (if (s == "Enter your") and a bunch of combinations and the if condition is always ignored.
Expected Results:
The debugger should NOT stop on the if (true) {} line
Workaround (if any):