3,588 karma · joined December 26, 2009
The product token for Windows Server 2008R2 and Windows 7 is the same (6.1) so there’s technically no way to tell the difference. jsPerf is supposed to show you it could be both, not one of them. Is this bugged?
Note that some interesting information is missing from it (e.g., in IE the smallest unit of measure isn’t always 15 ms — it all depends). If you want to know all about it, check out http://calendar.perfplanet.com/2010/bulletproof-javascript-b....
Why not use Benchmark.js https://github.com/mathiasbynens/benchmark.js for your test case? This library will take care of all the issues mentioned in the article I linked to. Or just take the easy road and use http://jsperf.com/ which uses Benchmark.js behind the scenes :)
Another suggestion: why not just use localStorage instead of a $_SESSION?
Other than the DOCTYPE, there’s not much “HTML5” to it. It’s just good old HTML, JavaScript and CSS, wrapped together in a document that happens to use the HTML5 DOCTYPE.
See the final question in the FAQ: http://jsperf.com/faq :)
A: No, but if you want, I can write you some CSS that looks just like it!
FYI, the `.append` line is missing a closing `)`. Also, you probably don’t want to use `$(this)` in that case, you could just use `this`.
When a form containing <input type="text" name="foo" value="bar"> is submitted, $_POST['foo'] === 'bar' in PHP. (And it works similarly for other server-side programming languages.)
In the XHTML serialization of HTML5, the solidus isn’t required either; you can choose to close the elements instead.
The following examples are both confirming/valid HTML5 in ‘XML mode’ (they’re valid XHTML1 as well):
a) With solidus
<img src="foo" alt="bar" />
b) Without solidus <img src="foo" alt="bar"></img>
Just to be clear though, in my post I was just pointing out that you don’t have to change anything in your HTML4/XHTML code to switch to HTML5, except for the DOCTYPE.The HTML5 spec is written with backwards compatibility in mind, and the DOCTYPE is one of the examples. HTML5 specs current behavior and implementations. The DOCTYPE would’ve been different if browsers didn’t already support it.
I realize a lot of additional info is lost on people who are viewing the slides but couldn't attend the presentation, and am working on a blog post with some more explanations.
If it still doesn’t work, there are bugs indeed. But it should work ;)