kavinithiy / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

IE5 Mac support #192

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, ie7-js does not work in IE5 Mac. This is because the browser doesn't 
implement 
certain features and has bugs. The following are what I have found so far:

What steps will reproduce the problem?
• The instanceof operator.
In the source it is used twice, in base2.js on lines 81 and 101. The fix is to 
use the object's 
constructor property instead. i.e. replace (expression instanceof RegExp) with 
(expression.constructor == RegExp).
• Numeric property indexes in object literals.
This is found on lines 393-400 of ie7-css.js. The solution is to simply quote 
the numeric 
property names, like in JSON, so they become strings. i.e. Instead of {1: a, 2: 
b}, use {"1": a, "2": 
b}.
• Event registration with attachEvent/detachEvent.
Found in ie7-recalc.js and build.php. The simplist workaround is this:
if (!element.attachEvent) { element["on"+type] = handler; }
But this doesn't take care of detaching, or attaching multiple events on the 
same element, so 
more is needed there.
• Array.prototype.splice
While this isn't actually in ie7-js so its not causing any errors, it might be 
a nice function to 
have.
• throw new Error()
This too isn't actually in ie7-js, but IE5 doesn't have it and it is easy to 
add:
if (!window.Error) { Error = function () {} }

What is the expected output? What do you see instead?
Errors.

What version of the product are you using? On what operating system?
MSIE 5.2 for Mac. (Mac OS X 10.5 Leopard)

Original issue reported on code.google.com by celehner1 on 24 Aug 2009 at 3:21

GoogleCodeExporter commented 9 years ago
Nobody uses IE5 for Mac. It hasn’t even been available for download for 
nearly 3
years. It will never be supported, nor should it be.

Original comment by goo...@zetafleet.com on 25 Aug 2009 at 5:35

GoogleCodeExporter commented 9 years ago
I'm not going to support such an ancient browser.

Original comment by dean.edw...@gmail.com on 11 Feb 2010 at 1:22