> What needs fixing?

One of the things is

var list:XMLList = xml + xmlList;

or
var list:XMLList = xmllist1 + xmlList2;

I hope to have a fix for this within the next 12 hours or so.


There are also some potential issues with valueOf() I think, that I need to
look into.


This:

var xml:XML = <xml>1</xml>;
var nine:uint = 9;

var numResult:Number = xml + nine;

Does not equal 10 (Number) - it equals 19 (Number), because xml is always
toString'ed by default I think. But in Royale there is an attempt to make
it behave like a numeric value if it can represent one. According to the
spec (11.4.1) "When numeric addition of XML objects is desired, the
operands shall be explicitly coerced to Numbers" (so: it should not
implicitly convert to a numeric value)

I was planning to add tests for this type of thing and run them across
flash and js to determine any inconsistencies and fix things as needed.









On Tue, Jan 18, 2022 at 7:05 AM Harbs <harbs.li...@gmail.com> wrote:

> What needs fixing?
>
> > On Jan 17, 2022, at 5:20 AM, Greg Dove <greg.d...@gmail.com> wrote:
> >
> > Just a note that I do expect to add fixes to some aspects of XML/XMLlist
> > this week
>
>

Reply via email to