Ordered list showing all zeros in IE9
Update 3/20/2012 - Fixed in IE10
This regression has been fixed in Internet Explorer 10 (all document modes). Microsoft has deleted the Connect entry, so you cannot review its status. Since Microsoft now pushes IE10 down automatically, it should be working for all your regular customers.
This is a known IE9 regression, which has been reported on Microsoft Connect:
Ordered list numbering changes from correct to 0, 0
Type: Bug
ID: 657695
Opened: 4/6/2011 12:10:52 PM
Access Restriction: Public0 Workaround(s)
5 User(s) can reproduce this bug
Update:
Posted by Microsoft on 6/14/2011 at 3:20 PM
Thank you for your feedback.We were able to reproduce the issue and are investigating it.
Best regards,
The Internet Explorer Team
HTML page that reproduces bug:
<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE>IE9 Ordered List Zero Bug</TITLE>
<SCRIPT type="text/javascript">
setTimeout(function ()
{
document.getElementById("dv1").innerHTML = "<ol><li>XXX</li><li>YYY</li></ol>";
var container = document.createElement('span');
container.style.cssText = "display:none";
document.getElementById("dv2").appendChild(container);
}, 1000);
</SCRIPT>
</HEAD>
<BODY>
<DIV id="dv1">
<OL>
<LI>AAA</LI>
<LI>BBB</LI>
</OL>
</DIV>
<DIV id="dv2"></DIV>
</BODY>
</HTML>
A workaround is to place an empty element after your DIV
:
<div id="one">
<ol>
<li>one</li>
<li>two</li>
</ol>
</div>
<div id="two" style="display:none">
<ol>
<li>three</li>
<li>four</li>
</ol>
</div>
<div id="empty"></div>
Browsers that exhibit the bug
Internet Explorer 9 (9.0.8112.16421)
- Document Mode Quirks: Works
- Document Mode IE7 standards: Works
- Document Mode IE8 standards: Fails
- Document Mode IE9 standards: Fails
Internet Explorer 8 (8.0.6001.19048)
- Document Mode Quirks: Works
- Document Mode IE7 standards: Works
- Document Mode IE8 standards: Works
Internet Explorer 7 (7.0.6000.16982): Works
Google Chrome 10 (10.0.648.134): Works
Numbers of an ordered list turn into 0 while clicking through jquery tabs
This seems to be an issue in IE itself looking at this related question.
I was able to get this fixed by recreating the counter on the list items when selecting the tab once again.
$(function() {
$( "#tabs" ).tabs({
select: function(event, ui){
var ol = $($(ui.panel).children()[0]);
setTimeout(function(){
ol.children().css("counter-reset", "item")
}, 1);
}
});
});
Check out this jsFiddle for a working example
Ordered List (ol) showing up un-numbered?
It's going to be a CSS issue. CSS can change the numbering/bullet style, and even turn it off altogether. Using Firebug, inspect the element and look at the CSS styles on the right to see what styles are being applied to it. Look for one called list-style
.
jQuery Sortable - Ordered List - Bug in IE9
This behavior may be caused by a regression error in Internet Explorer 9.
A possible workaround is to place your ordered lists into div elements and add an empty div element afterwards...
<div id="first">
<ol class="drop">
<asp:Repeater ID="repQuestion1Answers" runat="server">
<ItemTemplate>
<li answerid="<%#eval("ID") %>"><%#Eval("Answer")%></li>
</ItemTemplate>
</asp:Repeater>
</ol>
</div>
<div id="second">
<ol class="drop selected">
</ol>
</div>
<div id="empty"></div>
... as outlined in this similar post with an answer that describes a regression error in IE9.
Related Topics
CSS - Hover Passes Through Elements to Activate Hover on Covered Element
CSS to Keep Element at "Fixed" Position on Screen
Make a Parent Div Webkit-Filter Not Affect Children
How to Detect HTML5 Audio Mp3 Support
"Attribute Name Not Allowed on Element Div at This Point"
Encoding Ffmpeg to Mpeg-Dash - or Webm with Keyframe Clusters - for Mediasource API
Rendering a Hierarchy of "Option"S in a "Select" Tag
CSS Sprites and Repeating Backgrounds
How to Make Search Bots Ignore Certain Text
Setting Max-Height for Table Cell Contents
How to Prevent an Image from Overflowing a Rounded Corner Box
CSS Double Border (2 Colors) Without Using Outline
Which Versions of Ie Support Png Favicons
Always Show Browser Scrollbar to Prevent Page Jumping
How to Align a Label to The "Bottom" of a Div in CSS
Why Does Flex-Box Work with a Div, But Not a Table
In Chrome 55, Prevent Showing Download Button for HTML 5 Video