greg-dove opened a new issue #1185:
URL: https://github.com/apache/royale-asjs/issues/1185


   
   Testing in flash:
   ```
   
   var node:XML = <type type="without name attribute"/>;
   
   var list:XMLList = node.@name;
   var Null:* = null;
   var Undefined:* = undefined;
   //the above is just so the very last trace comparison below does not give 
warnings or errors in compiler, the earlier checks can also be done with the 
literal null/undefined 
   
   trace((node.@name == ""))//false in flash (true in Royale)
   trace((node.@name == Null))//false
   trace((node.@name == Undefined))//true in flash (false in Royale)
   
   trace((list.valueOf() == Null))//false
   trace((list.valueOf() == ""))//false in flash (true in Royale)
   trace((list.valueOf() == Undefined))//true in flash (false in Royale)
   //conclusion: XMLList.valueOf should return undefined for empty list
   //but:
   trace((Null == Undefined))//true (however the non-strict equality here does 
not work for empty XMLList == null above))
   
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to