Invalid markup means you are relying on the browser to read your intent or your mind. They are very good at doing that but no self-respecting web developer would ever do such an insane thing as your example.
EDIT: Interesting about the downvotes. It shows a total lack of understanding the fundamentals of how browsers work but, alas, downvote away.
EDIT: Interesting about the downvotes. It shows a total lack of understanding the fundamentals of how browsers work but, alas, downvote away.