aFarkas/html5shiv — Issue #50: IE debug error appears when printing a page using Google Code's HTML5shiv
Author: Martijn1981
Created: 2012-02-17 09:55:17+00:00
State: open

I keep getting debug errors with the latest version of Google Code's HTML5shiv. Here's how to reproduce the problem.

1. Use Minify for your CSS and put @media print & @media screen queries inside (e.g. )
2. Use the built-in script debugger in Internet Explorer.
3. Attempt to the print the page. The following error appears:

"Line: 3
Error: Unable to get value of the property 'media': object is null or undefined"

I expect to be able to print the page properly, HTML5 elements included! 'Cause I haven't figured out that last part yet...

I'm using a native IE8 browser, Windows XP. Tried it on IE8 browsers with Vista: same error.