On Jan 18, 2006, at 1:56 PM, Bob Ippolito wrote:


On Jan 18, 2006, at 6:08 AM, ssteiner wrote:

TABLE( ...
   TD( IMG( {'src':'someimage.jpg', 'alt':'Product Image'},null ));

That choked when used inside a table declaration.

Was that exactly it? Because the first argument is the attributes, but you gave an IMG tag as the first argument to the TD. There is also no reason to pass null as a second argument to IMG, but that doesn't do anything one way or the other.

Sorry, the TD was being handled by a partial function and in factoring out, I neglected to put in the null placeholder.
        TD( null, IMG(....
i.e. the correct way, was how it was being constructed.


I made it into:

image = IMG( {'src':'someimage.jpg', 'alt':'Product Image'},null );
TABLE( ...
  TD(null, image);

And the problem went away.  IOW, trying to manipulate the attributes
when the IMG was already in the TD didn't work, pre-building it allowed
me to use the pre-built IMG in the table just fine.

Those two statements are equivalent in every way except for the mistake that I pointed out above... even the evaluation order is the same.

Are you saying that the IMG() node construction doesn't take place untl it is used in the TD creation? The references I saw to bugs in I.E. related specifically to manipulating the attributes of IMG nodes that were already contained within tables.

Steve


Reply via email to