Forum Moderators: open
If your document has true errors - that is, the mark-up is not well-formed - then you may have troubles being rendered properly by at least some user agents (and that includes search engine spiders, by the way.)
On the other hand, if you just have some browser-specific mark-up in there that's just ignored by other browsers, it's not usually a big deal.