jamesgpearce/modernizr-server — pull request #1 by aarontgrogg (2013-04-15 13:39:28+00:00)
Title: Adding Modernizr Object & classes to client page

These changes add the Modernizr JS Object created created during the initial ping into the final client page so the test values can be used there via JS without having to run them again.

It also adds the Modernizr classes to the `` tag so the CSS can make use of them.

Lastly, I fixed a couple of issues I was getting:
1. With a version of Modernizr that performed every test, I was getting an error regarding the `hyphens` and `mathml` tests because `document.body` didn't yet exist (I know this is a Modernizr error, but moving the script into the `

` of the temp page fixed the problem here, and I will look into the real issue in their repo later).
2. In `function boo()`, I added `serialize()` and `unserialize()` when setting and retrieving the `$_SESSION` value, because I was getting a `__PHP_Incomplete_Class_Name` error in my `$modernizr` object.

Cheers!

Atg