Quote:
Originally Posted by potter
Dude, face it. You're not supposed to put a div inside of a list. In fact, a lot of browsers will even break the list if there is something like that in it. The only reason what you're saying MIGHT work in all the browsers is because of an inherent flaw in the way they currently render having a block level element inside of a list like that. Meaning, eventually - they will not render correctly.
In fact, the whole idea of what you're doing makes the list completely irrelevant and useless. He could pull out all the list code and just use the divs and it would still render the same. Not only are you breaking and voiding the list item to ALL major browsers, but you're negating the whole reason for him to be putting it into a list in the first place.
Sorry dude, but you're code is wrong, let alone invalid. The End.
|
i never said it validated properly. i was trying to make a quick fix.
it does render properly though and that is my point. and there is no "eventually". i can bet we come back in 5 years and it will still render.
explain to me why it make the list irrelevant? the SE will see it is a list and organize its content.
my point about validation is people over worry about the wrong things when it comes to it. yes i should have written a better code but lets talk about this:
you can have a site that validates but have over 1000 extra divs.
maybe we should start a new thread about this. i want to find out peoples views on validation. The Truth Hurts can come in there and bash me there. we are kinda crowding this thread now.