Another thing to watch for (though maybe we got to the bottom of this
already) is that IDs cant start with a number.
I.e. id="0123123" is invalid, and can lead to strange errors like the
one you describe. If your id is actually "myDiv", there's no problem,
but I've seen lots of people try and use a guid, and thats no good - you
need to add a prefix.
See: http://www.w3.org/TR/REC-html40/types.html#type-name
"ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens ("-"),
underscores ("_"), colons (":"), and periods (".")."
hth,
Sam
Element.cleanWhitespace('myDiv');
It doesn't work in IE, but putting in any other id and IE seems to
execute it just fine. It doesn't seem to matter what is in the ID or
what the name of the ID is.. I used the firefox view formatted source
extension to grab all my rendered HTML and there doesn't seem to be
any elements not closed or anything like that. I'll dig further.
Thanks for the help everyone.
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs