Quote:
Originally Posted by Perkin
Say you had
Code:
<i class="something">Here's</i><i> some text</i>
and removed the </i><i> then the ' some text' would also get the something class styling as well, which wasn't what was wanted.
|
Valid point. However, <i/> and <i></i> (ditto for any other inline element without content or attributes, such as B and SPAN) are not supposed to have any effect on the layout. The only situation I can think of where they would also applies to <span>X</span>, where there's a CSS rule involving them. For instance:
span { font-style: italic; }
i + span { text-decoration: underline; }
...are both completely legal. Kind of silly in how they obfuscate their effect on the code, but legal.