Ok, this is soluble.

All setting of CSS attributes should be through LzSprite.  LzSprite  
has to convert LFC numbers using CSSDimension (q.v.) because CSS  
dimensions are strings and must have units (unless they are 0).   
CSSDimension could be conditionalized for browsers using the Jim/Max  
capability scheme.  And it can turn NaN back to undefined or null or  
0 or whatever makes i.e., happy.

Of course, we probably should not be wasting time animating undefined  
properties, either.


On 2006-10-06, at 09:57 EDT, Philip Romanik wrote:

> This is a javascript-only example of the error on IE 6.
>
> <body>
> <div id="outerdiv"></div>
> <script>
>   var nan = Number(undefined);
>   document.getElementById ('outerdiv').style.height = nan; </script>
> </body>
>
> Number(x) is used in the animators, and the NaN is coming from  
> Number(undefined) because the app tries to animate a property that  
> hasn't been set. If the property being animated is height or width,  
> you get an 'Invalid Argument' error on IE.
>
> Phil
>
>
>
>> Hi Tucker,
>>
>> I found some more issues but I haven't written a fix yet; only the  
>> hacks to
>> get it running further.
>>
>> NaN processing is different on IE6 and FF. This example runs on FF  
>> (and
>> sets height to NaN, but generates a Javascript error on IE6):
>>
>> <canvas>
>>    <text id="tempview" width="100" />
>>
>>    <method reference="canvas" event="oninit">
>>      var value = 0/0;
>>      tempview.setAttribute ('height', value);
>>      tempview.setText ("height = " + tempview.height);
>>    </method>
>> </canvas>
>>
>>
>> This condition is occurring in animators. This happens in
>> basefocusview.lzx, and perhaps other places I have not tracked  
>> down yet.
>>
>> Phil
>


_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to