Hey cats,

I seem to have ran into a problem in IE trying to use parentNode with
the cleanWhitespace method.

doing something like:

var div = $('mydiv');
Element.cleanWhitespace(div);

works really great, but try doing:

var div = $('mydiv');
Element.cleanWhitespace(div.parentNode);

or

var div = $('mydiv');
div = div.parentNode;
Element.cleanWhitespace(div);

Breaks in IE, I've been messing around with alerts in prototype and it
looks like it's going through the for loop in the cleanWhitespace
method at least once, but then it breaks on a consecutive pass
through. Any idea why this is, or anyway to hack around it? (this
isn't a problem in Firefox or Safari, btw)

Thanks for you help,
Jason
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to