Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for IE9 printing #128

Open
anders72 opened this issue Sep 30, 2013 · 0 comments
Open

Support for IE9 printing #128

anders72 opened this issue Sep 30, 2013 · 0 comments

Comments

@anders72
Copy link

Hi!

We have a problem with IE9 and printing. We are using HTML 5 elements in our code that we would like to hide when printing:

HTML:

<link rel="stylesheet" type="text/css" media="print" href="print.css"/>
<script src="html5shiv-printshiv.js"></script>
....
<nav>
<ul>
    <li>Should not be printed</li>
</ul>
</nav>

print.css

nav { display :none }

This works great when using IE8 and the printshiv resulting in the nav tags being hidden. But when I print using IE9 the nav tags are displayed.

Your documentation says that the printshiv only supports IE8, is there any reason why you won't support IE 9?

I tried to hack printshiv by replacing:

var supportsShivableSheets = !supportsUnknownElements && (function() ...

with:
var supportsShivableSheets = (function() ...

This seemed to fix the printing problem, but I don't know if this will have any side effects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant