If you have a DOCTYPE in your page which is causing problems and you can't remove or modify, try adding a comment before the DOCTYPE or using the <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> tag as a workaround. Here is a comment from Microsoft on their bug, but the suggested fix doesn't work.
The following table lists all possible doctypes and their effect on mxGraph in IE6, IE7, IE8 and IE8 in IE7 compat mode using the above tag:
Used software versions:
- Server: Apache/2.0.59 (Unix)
PHP/5.2.6 on Darwin 10.0.0
- IE6: 6.0.2900.2180.xpsp_sp2_rtm.040803-2158 on Windows XP Pro Version 2002 SP2
- IE7: 7.0.5730.13 on Windows XP Pro Version 2002 SP2
- IE8: 8.0.6001.18813 on Windows Vista Ultimate SP2
- IE8/7: Same as IE8 but with <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
Doctype IE6 IE7 IE8 IE8/7
DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN" OK OK OK OK
DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN" OK OK OK OK
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
1) 4) 2) 4)
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
1) 4) 2) 4)
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
1) 4) 3) 4)
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
1) 4) 3) 4)
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"
1) 4) 3) 4)
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
1) 4) 3) 4)
- HTML rendering affected, VML visible
- VML not visible
- VML (except textboxes) not visible
- HTML rendering and events affected, VML visible
answered
18 Apr '11, 00:48
David ♦♦
4.8k●6●24
accept rate:
46%