Thanks guys. I got to the root of the problem, so into Lighthouse it goes.

https://mootools.lighthouseapp.com/projects/24057-mootoolsmore/tickets/459-htmltable-push-an-array-that-contains-an-decimal-in-ie



On Fri, Dec 10, 2010 at 5:54 AM, Gafa <[email protected]> wrote:

> From a little investigation:
>
> FF works because it doesn't execute the same code as IE.
>
> IE7 works because I think the engine is just ignoring a bunch of stuff
>
> IE8 problem has to do with the "item" object in IE8 not being set.
>
> 1.3 Core uncompressed line: 2158
>
> if (item.getAttributeNode('id').nodeValue == id){ //failing in IE8,
>
> Hack I made to make work: place if(item) around for loop and nodeValue
> if statement  This is in the var Combinators in 1.3 core.
>
> if(item){
>     for (i = 0; item = children[i++];) if
> (item.getAttributeNode('id').nodeValue == id){
>                this.push(item, tag, null, classes, attributes, pseudos);
>                break;
>        }
> }
>
> With this hack works in IE7, IE8, FF3.6.
>
> *If there is a better solution or understanding please post.
>
> Gafa
>
> On Dec 9, 5:27 pm, SerranoABQ <[email protected]> wrote:
> > Hello all,
> >
> > I've just ran into a curious problem of sort. I'm using MooTools 1.3
> > and HtmlTable from More 1.3 to create a table of data. I have an
> > array of values that I push into the table. In Firefox everything
> > works as expected, regardless of what the array looks like. However,
> > in Internet Explorer the method only works if there are no decimals
> > in the array. I tested with MooTools 1.2.5 and More 1.2.5 and the
> > problem dissapears.
> >
> > So for example, this works in both IE and FF:
> > var good = ['An', 'array', 'with', 'strings', 'and', '1', 'integer'];
> > var t = new HtmlTable();
> > t.push(good);
> >
> > This, on the other hand fails with IE, but works fine in FF:
> > var bad = ['Similar', 'array', 'with', 'strings', 'and', '1.0',
> > 'decimals'];
> > var t = new HtmlTable($('works'));
> > t.push(bad);
> >
> > Any ideas as to what might be going on?
> >
> > Thanks,
> > Justin
>

Reply via email to