The change for removing conditional_styles with version 5 is great. And use the guide lines from http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-ne....

But now there is no way for IE9 specific code or the more general IE solution. We hade a problem with a background position problem in all IE version. We had to use the conditional_styles but it would be great if there was a ie9 class to html. And not just lt-ie9.

Comments

td540’s picture

Couldn't you just add that class by overriding html.tpl.php?

kristofferwiklund’s picture

Is this okay:

<!DOCTYPE html>
<!--[if IEMobile 7]><html class="ie iem7"  lang="sv" dir="ltr"><![endif]-->
<!--[if lte IE 6]><html class="ie lt-ie9 lt-ie8 lt-ie7"  lang="sv" dir="ltr"><![endif]-->
<!--[if (IE 7)&(!IEMobile)]><html class="ie lt-ie9 lt-ie8"  lang="sv" dir="ltr"><![endif]-->
<!--[if IE 8]><html class="ie lt-ie9"  lang="sv" dir="ltr"><![endif]-->
<!--[if IE]><!--><html  class="ie" lang="sv" dir="ltr"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:dc="http://purl.org/dc/terms/"
  xmlns:foaf="http://xmlns.com/foaf/0.1/"
  xmlns:og="http://ogp.me/ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:sioc="http://rdfs.org/sioc/ns#"
  xmlns:sioct="http://rdfs.org/sioc/types#"
  xmlns:skos="http://www.w3.org/2004/02/skos/core#"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema#"><!--<![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html  lang="sv" dir="ltr"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:dc="http://purl.org/dc/terms/"
  xmlns:foaf="http://xmlns.com/foaf/0.1/"
  xmlns:og="http://ogp.me/ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:sioc="http://rdfs.org/sioc/ns#"
  xmlns:sioct="http://rdfs.org/sioc/types#"
  xmlns:skos="http://www.w3.org/2004/02/skos/core#"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema#"><!--<![endif]-->

I don't like the redudant HTML5 tag. But I can not find any better solution.

johnalbin’s picture

Version: 7.x-5.1 » 7.x-5.x-dev
Status: Active » Fixed

You don't need to include the xmlns stuff since they are inside HTML comments that won't be read by a RDF consumer.

I don't think a ie9 specific class is needed in the general sense. Since it is an edge case and really easy to implement on a case-by-case needed, I'm not going to add it to Zen.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.