Hi all,
Our web team has decided to implement Modernizr into our website builds now to better support older browsers (predominantly IE). We believe that this is much better than writing conditional CSS which is not well supported anymore as you can only target <IE10 and it just adds extra css files and bloat.
Anyhow, Modernizr is the way we detect browser features such as SVG, SMIL, etc and then implement styles that will act as fallbacks if the features are not supported by the browsers (IE8 and IE9 - I am looking at you). However, problem is that IE8 does not want to play ball with me and it seems that the Modernizr script does not work at all because it does not inject any of the supported/unsupported classes into the HTML tag. Another related issue is that I cannot actually write in the class "no-js" into the HTML tag because I don't know if Squiz Matrix will let me do that (can it?).
But anyway, even though I don't put that class into the HTML tag, the other modern browsers (IE11 included) will show the supported features as HTML classes when I run the page through developer tools console.
I thought this might just be IE8 playing silly tricks but I did a test page on my own server outside the Squiz environment and it worked fine, see here: http://www.coolwebs.com.au/svgTest/
Could there be anything within Squiz Matrix that may cause conflict with Modernizr and its functionality being implemented in the IE8 browser?