browser-bugs

Why is the site running in IE quirks mode?

三世轮回 提交于 2019-11-29 12:56:41
I've got a site: http://www.sucramma.dk When I'm in FF, Chrome, or Safari, the site is displayed as it should, but in IE the site is left aligned, and is running is quirks mode. Why? The doctype is set! It's a Byte Order Mark, , which is invisible to most text editors. Try using VIM and killing it or somehow find a different text editor and kill everything before <!DOCTYPE html> You can simply copy <!DOCTYPE HTML> and everything below it into a new file and save over it, meaning you wont be copying the BOM coming before it to resolve this issue; I've ran into it many times. http://validator.w3

Why does IE nuke window.ABC variables?

走远了吗. 提交于 2019-11-27 12:23:41
When running the following block of code, FF and Chrome output typeof(hiya) = string while IE7/8 output typeof(hiya) = undefined . <html> <body> <script type="text/javascript"> window.hiya = 'hiya'; </script> <script type="text/javascript"> if( false ) { var hiya = 1; } document.write( "typeof(hiya) = "+ typeof(hiya) ); </script> </body> </html> Each of the following makes the problem go away: Combining everything into a single <script> block. Removing the if block. Renaming var hiya = 1 to var hiya2 = 1 . Renaming var hiya = 1 to window.hiya = 1 . Renaming var hiya = 1 to hiya = 1 . What is

Why does IE nuke window.ABC variables?

℡╲_俬逩灬. 提交于 2019-11-26 16:01:52
问题 When running the following block of code, FF and Chrome output typeof(hiya) = string while IE7/8 output typeof(hiya) = undefined . <html> <body> <script type="text/javascript"> window.hiya = 'hiya'; </script> <script type="text/javascript"> if( false ) { var hiya = 1; } document.write( "typeof(hiya) = "+ typeof(hiya) ); </script> </body> </html> Each of the following makes the problem go away: Combining everything into a single <script> block. Removing the if block. Renaming var hiya = 1 to

Can&#39;t scroll to top of flex item that is overflowing container

点点圈 提交于 2019-11-25 22:55:22
问题 So, in attempting to make a useful modal using flexbox, I found what seems to be a browser issue and am wondering if there is a known fix or workaround -- or ideas on how to resolve it. The thing I\'m trying to solve, has two aspects. First, getting the modal window vertically centered, which works as expected. The second is to get the modal window to scroll -- externally, so the whole modal window scrolls, not the contents within it (this is so you can have dropdowns and other UI elements