b9p9zzaat / ie7-js

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

null-is-not-an-object error in Safari on IE8.js #345

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Include IE8.js
2. Load in Safari
3. View element inspector

What is the expected output? What do you see instead?
No errors is expected. What we get is a null-is-not-an-object error on this:

navigator.appVersion.match(/MSIE (\d\.\d)/)[1])

because MSIE that regular expression matches nothing and then tries to resolve 
an array.

What version of the product are you using? On what operating system?
Mac OS X, Safari latest, IE8.js all versions

Please provide any additional information below.

Can be fixed by wrapping it in a check to see if its null.

Original issue reported on code.google.com by giuseppe...@gmail.com on 23 Oct 2011 at 6:36