Loading...
 
Skip to main content

IE 8 and DD_belatedPNG.js

Status
Open
Subject
IE 8 and DD_belatedPNG.js
Version
3.x
Category
  • Usability
Feature
Browser Compatibility
Submitted by
darioj
Lastmod by
darioj
Rating
(0)
Description

Obviously:
DD_belatedPNG fix is enabled by default on the site logo and is intended for IE 6 only.
The IE 6 check is in lib/setup/js_detect.php
strpos($_SERVER'HTTP_USER_AGENT', 'MSIE 6') !== false

The problem with this is that IE 8 will also get detected, check this:


Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC2; .NET CLR 2.0.50727; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET CLR 1.1.4322)



The bug with all this lies in the fact that IE 8 shows a few js errors on DD_belatedPNG.js on each page load and that could prevent IE from submitting.

Solution



Workaround

I did this but you might find a better approach:
strpos($_SERVER'HTTP_USER_AGENT', 'MSIE 6') !== false && !strpos($_SERVER'HTTP_USER_AGENT', 'MSIE 8') !== false

Importance
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2566
Created
Friday 12 June, 2009 15:13:05 UTC
by Unknown
LastModif
Friday 12 June, 2009 15:18:39 UTC


Show PHP error messages