It's perhaps unrelated to the NaCl.
Two progress bars are in the source, one hard-coded and the other dynamically added by the JavaScript, the former being always good and the latter problematic. If I comment out the "Problem line 1" or "Problem line 2" or both, the bar will work correctly. It seems the presence of both will stop moving the progress graphically. But the hard-coded one has both and always works. I can't get my head around the behaviors.
Here is my browser info:
| Google Chrome | 22.0.1229.94 (Official Build 161065) m |
| OS | Windows |
| WebKit | 537.4 (@130860) |
| JavaScript | V8 3.12.19.15 |
| Flash | 11.4.31.110 |
| User Agent | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4 |
Here it is the HTML file.
=======================
<html
<head>
<script type="text/javascript">
function add_progress_bar()
{
bad = document.createElement("progress");
bad.id="bad";
bad.max="100";
bad.value="1"; //Problem line 1
bad.style.border="solid red"; //Problem line 2
document.getElementsByTagName('body')[0].appendChild(bad);
}
function value_1_to_100()
{
for(var i=1;i<=100;i++)
{
document.getElementById('good').value=i;
document.getElementById('bad').value=i;
}
}
</script>
</head>
<body onload="add_progress_bar();">
<button onclick="value_1_to_100()">Click</button>
<progress id="good" max="100" value="1" style="border:solid red"></progress>
</body>
</html>