News for hackers. Stuff that matters.
Re:Bootstrap 2.0, From Twitter by mrpollo on Wednesday February 01, 2012 @01:43AM (#3536994)
Re:Bootstrap 2.0, From Twitter by ibejoeb on Wednesday February 01, 2012 @05:41PM (#3540429)
At first, I thought that was a poor choice, too. However, <i> has come to mean that something is to be interpreted under a different voice or mood. You are providing augmented meaning. To further color a bit of text with an icon, I think, is in the spirit of the rfc.

Notice, also, that the rfc talks specifically about classifying the alternate meaning, appropriately, with the class attribute.

http://dev.w3.org/html5/spec/Overview.html#the-i-element

Re:Bootstrap 2.0, From Twitter by oconnor0 on Wednesday February 01, 2012 @01:47AM (#3537002)
Thanks for pointing that out. That seems like an odd design decision.

Edit: I wonder what motivated it. "i" for images and no one uses it to italicize text anymore?

Re:Bootstrap 2.0, From Twitter by kemayo on Wednesday February 01, 2012 @02:02AM (#3537025)
We've used <i> for icons before. Main reason we started doing it, I seem to recall, was that we needed some sort of element there to make the spritesheeting work easily, and a lone empty <i> is (a) short, (b) extremely devoid of meaning which might be added to it by browsers/readers, and (c) easy to remember when writing markup as i-for-icon.
Re:Bootstrap 2.0, From Twitter by mrpollo on Wednesday February 01, 2012 @01:58AM (#3537014)
yeah my best guess is that "i" for "icon", it's a good use, from the w3c "their use is discouraged in favor of style sheets." so I guess it doesn't really hurt no one, but the purists, or am I wrong?
Re:Bootstrap 2.0, From Twitter by intranation on Wednesday February 01, 2012 @02:42AM (#3537107)
`i` is for "italic", and that quote means that you should be using `font-style` instead of an HTML element to make your text italic.
Re:Bootstrap 2.0, From Twitter by rimantas on Wednesday February 01, 2012 @03:05AM (#3537152)
Bootstrap is kind of aimed for HTML5, and "Font Style Elements" form HTML 4.01 got a new life in this spec (including previously deprecated S and U), with redefined semantics. Using I for icon is still wrong even by new definition.

http://www.whatwg.org/specs/web-apps/current-work/multipage/...

Re:Bootstrap 2.0, From Twitter by niels on Wednesday February 01, 2012 @03:02AM (#3537146)
They don't use <i> anymore. They use class icon.
Re:Bootstrap 2.0, From Twitter by nhebb on Wednesday February 01, 2012 @03:09AM (#3537161)
It looks like they still do. From http://twitter.github.com/bootstrap/base-css.html#icons

<excerpt> How to use

With v2.0.0, we have opted to use an <i> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:

  <i class="icon-search"></i>
</excerpt>
Re:Bootstrap 2.0, From Twitter by dhendo on Wednesday February 01, 2012 @04:33AM (#3537309)
Yes, it looks like the docs are lagging behind the code. You just need to include the icon-something class in a tag.
Re:Bootstrap 2.0, From Twitter by nhebb on Wednesday February 01, 2012 @07:33AM (#3537648)
Thanks for the tip. Even if I never use it anymore, <i> still means italic to me. The thought of using it for icons breaks 15 years of ingrained habit.
Re:Bootstrap 2.0, From Twitter by mrpollo on Thursday February 02, 2012 @04:36PM (#3544614)
yeah, it's only their recommendation it doesn't really matter what tag as long as you have the class here is the selector

[class^="icon-"]

Re:Bootstrap 2.0, From Twitter by xmlninja on Wednesday February 01, 2012 @02:51AM (#3537125)
you dont have to use their icons you know.