<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1788: IE7 compatibility problems</title>
    <link>http://localhost/ticket/1788</link>
    <description>&lt;p&gt;
From Antonia Acuno, via Ira:
&lt;/p&gt;
&lt;p&gt;
It appears that the current layout for the datahub does not work in
IE7, which would mean a problem for us as most gov uses it and is one
of those we have to support...any views?
&lt;/p&gt;
&lt;p&gt;
Tested in several gov departments computers, so a common enough issue.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://imgur.com/ip4xa"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://imgur.com/ip4xa&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
From Rufus:
We haven't officially supported IE7 so far but can put engineering
effort into this if absolutely needed. I note that IE 7 is now 3y out
of date and is likely a security risk. Obviously this is something to
ask Antonio about.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1788</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Fri, 24 Feb 2012 19:19:22 GMT</pubDate>
      <title>priority, status, milestone changed; owner set</title>
      <link>http://localhost/ticket/1788#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1788#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              set to &lt;em&gt;zephod&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;priority&lt;/strong&gt;
                changed from &lt;em&gt;awaiting triage&lt;/em&gt; to &lt;em&gt;major&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;assigned&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-backlog&lt;/em&gt; to &lt;em&gt;current-ckan-sprint-2012-03-05&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Believe most of these are resolved by &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/27f4fc776b9199621d259749cf20787328df101f"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/27f4fc776b9199621d259749cf20787328df101f&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
@zephod: could you check again and see if anything remains?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>zydio</dc:creator>

      <pubDate>Thu, 01 Mar 2012 17:45:13 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1788#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1788#comment:2</guid>
      <description>
        &lt;p&gt;
Replying to &lt;a href="http://localhost/ticket/1788#comment:1" title="Comment 1 for Ticket #1788"&gt;rgrp&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Believe most of these are resolved by &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/27f4fc776b9199621d259749cf20787328df101f"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/27f4fc776b9199621d259749cf20787328df101f&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
@zephod: could you check again and see if anything remains?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I noticed that Thedatahub with latest code is still messed up..I was working with absolute paths in my environment without the h.url_for_static() to include the html5shiv.js script so I missed a problem, which can be fixed with my new [pull request &lt;a class="closed ticket" href="http://localhost/ticket/4" title="enhancement: Find a package (closed: fixed)"&gt;#4&lt;/a&gt;](&lt;a class="ext-link" href="https://github.com/okfn/ckan/pull/4"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/pull/4&lt;/a&gt;).
&lt;/p&gt;
&lt;p&gt;
I'm aware of only one problem left: when you hit the "Upload a File" button inside the Dataset &lt;a class="missing wiki"&gt;Edit/Resources?&lt;/a&gt; tab nothing happens in IE &amp;lt; 9.
This is related to those IE versions not being able to dynamically insert HTML 5 tags, which breaks some jquery-tmpl (actually JQuery) operation (if you debug the code everything works in jquery-tmpl until one of the latest operation involving JQuery returns null instead of the expected object).
I was able to fix the issue in my environment by adding the following conditional comment:
&lt;/p&gt;
&lt;pre class="wiki"&gt; &amp;lt;/script&amp;gt;
 &amp;lt;!--[if lt IE 9]&amp;gt;
 &amp;lt;script type="text/javascript" src="/scripts/jquery.html5.preie9fix.js"&amp;gt;
 &amp;lt;/script&amp;gt;
 &amp;lt;![endif]--&amp;gt;
&lt;/pre&gt;&lt;p&gt;
where the jquery.html5.preie9fix.js is simply the [gist](&lt;a class="ext-link" href="https://gist.github.com/887560"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://gist.github.com/887560&lt;/a&gt;) published by Akkuma in a [jquery-tmpl issue (&lt;a class="closed ticket" href="http://localhost/ticket/36" title="enhancement: Edit package page should support previews (closed: fixed)"&gt;#36&lt;/a&gt;)](&lt;a class="ext-link" href="https://github.com/jquery/jquery-tmpl/issues/36#issuecomment-918495"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/jquery/jquery-tmpl/issues/36#issuecomment-918495&lt;/a&gt;).
&lt;/p&gt;
&lt;p&gt;
This script patches JQuery on the fly on IE &amp;lt; 9 to rework in memory html 5 blocks handled by JQuery, so that it doesn't break.
&lt;/p&gt;
&lt;p&gt;
And this fixes the "Upload a File" button on IE.
I didn't commit/pull this specific fix for the following reasons:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;the script embeds innerShiv, which is a previous incarnation of html5shiv (now included in CKAN). It doesn't sound fine to include 2 pieces of code with similar effect, but I couldn't reproduce the fix with html5shiv!
&lt;/li&gt;&lt;li&gt;in my environment I have included this fix sitewide even if I didn't spot other problematic features..I don't know if it would be better to include it only on the dataset edit page in the official CKAN code.
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Summary: I leave to you guys the choice on how to deal with this problem.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>zydio</dc:creator>

      <pubDate>Thu, 01 Mar 2012 17:49:15 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1788#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1788#comment:3</guid>
      <description>
        &lt;p&gt;
Erh...sorry for some formatting errors in my comment.
I used markdown formatting for links, and used the #NUMBER format to cite issues, which obviously is interpreted by Trac as references to his own issues...my bad.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Thu, 01 Mar 2012 23:20:56 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1788#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/1788#comment:4</guid>
      <description>
        &lt;p&gt;
Re the Upload file button not sure what's best. We do have plans to replace jquery-tmpl with mustache in the near future (but not clear exactly *how* near). We'll think about this and get back to you. Thanks for the detailed debug report.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>zephod</dc:creator>

      <pubDate>Fri, 30 Mar 2012 18:49:25 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1788#comment:5</link>
      <guid isPermaLink="false">http://localhost/ticket/1788#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;assigned&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I've been performing a full sweep of the site to rebuild the markup &amp;amp; stylesheets using Bootstrap, and in doing so have managed to close off this ticket. Bootstrap allows us to delegate lots of clever functionality and layouts to Twitter's tried-and-tested code, making it easier to be compatible with IE7.
&lt;/p&gt;
&lt;p&gt;
It has brought up plenty of issues: Lots of Javascript was broken; plenty of pages generate broken doctypes causing the browser to go into quirks mode (which in turn causes the page to explode all over the screen); most dynamic content would fail to generate properly in one way or another.... (see the &lt;a class="closed ticket" href="http://localhost/ticket/1788" title="defect: IE7 compatibility problems (closed: fixed)"&gt;#1788&lt;/a&gt; branch for a log of issues encountered).
&lt;/p&gt;
&lt;p&gt;
I've been refactoring our JS and have managed to strip ckanjs, too, because the only significant element we'd used was the File Upload view (which also now works in IE7).
&lt;/p&gt;
&lt;p&gt;
test.ckan.net has been redeployed on master; I'm browsing the site in IE7 and everything is looking great :-)
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>