Well, if you were to take your page to:
http://validator.w3.org/
It will tell you. The reason why I mentioned this bit about valid HTML is that - few of us really know what valid and invalid markup is, not me I'm sure. But the validator does. It will often pick up on things that are esoteric but, that really matter in DHTML. A page can work fine with sloppy code on it. But, when you try to feed that to a script, anything can happen and it will vary from browser to browser.
I've solved almost the same problem you are talking about here with a trip to the validator. It found things that looked OK to my experienced eye but, that were still invalid.
Bookmarks