Hi,

I encoutered a problem when using Zend_Dojo on a IE6 browser. I have no
idea if this problem is reproducable, but I would like to show my
solution an ask a question.

When using

  $this->dojo()->addStyleSheetModule('dijit.themes.tundra');

in a page, the following code is added:

  <style type="text/css">
  <!--
      @import "/js/dijit/themes/tundra/tundra.css";
  -->
  </style>

This crashes the IE6 on my page for 100%.

Now when I remove the addStyleSheetModule() call with the following

  $this->headLink()->prependStylesheet(
     '/js/dijit/themes/tundra/tundra.css', 'screen, print'
  );

the IE6 does not crash any more. In the page, the following code is added:

  <link href="/js/dijit/themes/tundra/tundra.css" media="screen, print"
        rel="stylesheet" type="text/css" >

The solution works fine for me, but I do have a question. Why is the
dojo css file added in a different way? Why is not headLink() used
internally? Are there any reasons why @import is favoured?

Best regards,

Ralf

Reply via email to