waseem02 / jquery-asmselect

Automatically exported from code.google.com/p/jquery-asmselect
0 stars 0 forks source link

ie 8 on intranet reports version 7 to $.browser.version #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a document on your local intranet (including localhost)
2. set the top of the page to 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head><meta http-equiv="X-UA-Compatible" content="IE=100" /> <!-- IE8 mode --> 
to force IE 8 rendering on the intranet

method 2 to reproduce
go to jquery.com in i8 
press f12
not the browser mode is ie8
run $.browser.version and get 8.0
change to 8.0 compat view (click on it to change)
run $.browser.version and get 7.0
it is running a hack between ie 8 and ie 7 now.

3. add jquery (and asmselect) 
use IE 8, (windows 7 tested) run $.browser.version and IE returns 7.0

because of this bug the line causes the ol to render inline not block
//if($.browser.msie && $.browser.version < 8) $ol.css('display', 
'inline-block'); // Thanks Matthew Hutton

What is the expected output? What do you see instead?
it's an IE bug. possibly add an option to turn this hack off 

What version of the product are you using? On what operating system?
Windows 7 , IE 8 , 1.0.4a beta 

Please provide any additional information below.
IE 8 has 6 different render engines. It will not report what engine it is using 
accurately and they are all broken in different ways.
http://sharovatov.wordpress.com/2009/05/18/ie8-rendering-modes-theory-and-practi
ce/

Original issue reported on code.google.com by phans...@gmail.com on 5 Aug 2010 at 7:21

GoogleCodeExporter commented 8 years ago
I came across this too when 2X-UA-Compatible" is set to "IE=8". Setting to 
"Edge" solved the problem for me.

Original comment by dave%dav...@gtempaccount.com on 8 Feb 2011 at 11:18