twitter/bootstrap — Issue #2440: Carousel breaks in IE8 without "slide" class
Author: ima007
Created: 2012-03-06 23:44:36+00:00
State: open

While looking at my carousel in IE8, I noticed that my slides weren't going beyond the second slide. The issue is that there's an if-statement that will always return false if the css class "slide" isn't part of your carousel HTML markup:

```javascript
if(!$.support.transition && this.$element.hasClass('slide')){
/*
This code will never be triggered anywhere if the "slide" class
isn't part of the main carousel div (e.g.

)
*/
...code to be triggered if the slide animation IS NOT supported....
}else{
...code to be triggered if the slide animation IS supported....
/*
IE8 will not trigger the 'slid' event because $.support.transition is false
*/
}
```

Once I added "slide", the carousel worked in IE8. I would request that either the documentation be updated so that the css "slide" class is included as a part of the HTML markup (assuming that the future will bring more animation types), or that the logic be changed to something like:

```javascript
if($.support.transition && this.$element.hasClass('slide')){
...code to be triggered if the slide animation IS supported & requested....
}else{
...code to be triggered if the slide animation IS NOT supported & requested....
}
```