View Single Post
Old 04-07-2014, 03:48 PM   #631
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by Perkin View Post
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.
Rev. Bob is offline   Reply With Quote