try

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

...make sure the parentNode element actually has an id. It may be there is a bit of a difference between the reference you get from document.getElementById and trying to access a node (or nodeset) directly.

On 4/27/06, Jason Hummel <[EMAIL PROTECTED] > wrote:
On 4/27/06, Steve Longdo <[EMAIL PROTECTED] > wrote:
> Meow...er I mean, why not just select the $('parentNode') in the first
> place?

I actually tried that as well:

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

and got nada on IE
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to