Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modernizr 2 enabled blank pages in several browsers

I've been testing libraries for enabling HTML5 and loading JavaScript. I'm experiencing some oddities with modernizer 2 in IE7, Firefox 4 on XP, and others. (Works fine in IE6 and 8)

When including the script the browser simply renders the screen blank white.

http://ibob.dk/velkommen-narrow-head-modrn.html

I've managed to get it to show content if removing all styling. However scrolling down causes the browser to smear the content.

I see no JavaScript or HTML interpretation errors. Anyone got a hint to what is going on?

like image 573
Michael Avatar asked Jun 09 '11 04:06

Michael


People also ask

How do you determine if the browser supports a certain feature?

The concept of feature detection The idea behind feature detection is that you can run a test to determine whether a feature is supported in the current browser, and then conditionally run code to provide an acceptable experience both in browsers that do support the feature, and browsers that don't.

What is Modernizr in HTML?

HTML5 Modernizr: It is a JavaScript library that detects which next-generation web technologies feature our web browser supports. There are many new features that are being introduced in HTML and CSS but many browsers do not support these new features.


1 Answers

Resolved on github importing last version of modernizr REad Michael link: "I've opened an issue on modernizr on github github.com/Modernizr/Modernizr/issues/361 – Michael"

like image 109
cnt000 Avatar answered Oct 13 '22 11:10

cnt000