Originally Posted by rnd me
IE9 huh? i didn't see that qualifier, only what appeared to a blatant error by a respected coder.
Still, I tried it in IE9 and low and behold, i got "1.00".
now, knowing you're not crazy, and that you're usually wise, i kept plugging at it and noticed that in IE9 quirks, indeed the innerHTML is swapped for the value. This actually makes some sense.
I have to say that there's a big diff between IE9Quirks and IE9 Standard (the default), so please mention such parameters in future postings.
Perhaps you might care to look at my remarks in post#6.
<!DOCTYPE html> implies HTML5 which to me implies IE9.
I don't see how swapping the innerHTML for the value makes any sense at all in any situation.
Surely if HTML5 is mandatory it would have made sense for jmrker to place <!DOCTYPE html> at the start of his script. Without that surely the implication is that it works in HTML4.