quirks

Background reading for parsing sloppy / quirky / "almost structured" data?

I'm maintaining a program that needs to parse out data that is present in an "almost structured" form in text. i.e. various programs that produce it use slightly different formats, it may have been printed out and OCR'd back in (yeah, I know) with errors, etc. so I need to use heuristics that guess how it was produced and apply differen...

sender._postBackSettings.panelID returns null in non-IE browsers?

Hi all.. I got 2 update panels in one page. After a request I want to check which update panel(s) got updated. I've read sender._postBackSettings.panelID should be good for this :) However, whenever I get a postback in a non-IE browser, the panelID just returns null? It works very fine in IE... Here's a codesnippet: Sys.WebForms.Page...

Force vertical scrollbar to display in IE8

The vertical bar does not appear in IE8 if the page is not long enough. In FF, there is a workaround for this html { overflow: -moz-scrollbars-vertical; } I tried the following for IE8: overflow:scroll; but the scroll bar appears on both sides. I want it only for vertical and not horizontal. scroll-y does not work. Any solution? ...

Weird bug when combining an ASP.NET updatepanel with the jQuery UI DatePicker

Hi all I've created a page which combines an inline jQuery UI datepicker . I wan't to initiate a callback to the updatepanel when the user clicks a new date to update some data. Now, this page has multiple updatepanels (don't ask :) ), so I need to check which updatepanel did the reload in order to do some stuff clientside. I'm using __...

Is there a way to avoid IE7 quirks mode while rendering XML + CSS?

I've got some DocBook documentation styled with a CSS xml-stylesheet declaration. It looks great in Firefox, but IE7 doesn't seem to understand the CSS child selectors (e.g. section > title { ... }). I think this is because IE is running in quirks mode to render this XML, and older versions of IE didn't support that CSS syntax at all. ...

How can Javascript cause IE 8 to reload a page in compatibility view?

I'm testing a fairly complex Javascript-based web application in Internet Explorer 8 on Windows Vista. After loading the application, IE is in "standards" browser mode and "IE 8 standards" document mode. While the application is running, IE will sometimes reload the page and display a message saying something like "A display problem with...

no quirks mode on php pages?

My site is all php pages, since it's all database stuff. However, I'm having trouble putting the pages into no quirks mode... I did the regular thing: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; and this do...

XHTML Strict not rendering properly in Quirks Mode

When XHTML Strict is considered to be a proper markup that works across all platforms, my webpage that's in XHTML 1.0 Strict does render differently in Quirks mode. http://www.myfurni.com Am I doing something wrong? The page perfectly validates in W3C! EDITED FOR THOSE WHO REFER TO THIS QUESTION AFTER THE LINKED PAGE HAS CHANGED: The...

How do I keep divs from resizing in IE6?

Here's my markup (live repro): <body> <div style="text-align:center">header <input class='datepicker'/></div> <table><tr><td>really wide table.....................</td></tr></table> </body> When the datepicker is activated, the header div's width changes from the width of the screen to the width of the table (larger). This causes ...

Differences between IE5 and IE8 Quirks mode

I have a website that was programmed several years back and optimized for IE5/6. Now when it displays in IE8 some pages don't display right. I've confirmed that IE8 is displaying the page in Quirks mode (not Standards mode). I'm told that Quirks mode in IE5/6 is different from Quirks mode in IE8. Is there any site that lists the diffe...

Is there a way to condition a CSS styling to execute only on IE quirks mode?

I want to write a cross-browser widget, to integrate both to IE standard and quirks mode pages (FF is easy of course). Since I want to write the styling only once I would like to condition some styling statemets to execute only in quirks/standard mode. Is there a way t do so? As far as I understand, both the _ hack and IE conditional ...

What quirks have you found in your favorite database?

Q: Why do we have more than one database? A: Because they all suck. So which "feature" of your favorite database made you think (or even say) "WTF???" For example, Oracle doesn't support TIME as a native type. Instead, TIME is folded into DATE, so you must chop'n'dice in your queries. Or "optimizer hints" which Oracle is free to ignor...

Why does 2 == [2] in JavaScript?

I recently discovered that 2 == [2] in JavaScript. As it turns out, this quirk has a couple of interesting consequences: var a = [0, 1, 2, 3]; a[[2]] === a[2]; // this is true Similarly, the following works: var a = { "abc" : 1 }; a[["abc"]] === a["abc"]; // this is also true Even stranger still, this works as well: [[[[[[[2]]]]]...

Popup and change location at the same time...

Basically here is my code (Authenticator.jsp): window.location.replace("Login.html"); // replace method also takes care of history window.open ("Main.html", "Welcome logged in user"); Expected behaviour: We basically open the Main.html in a popup once a user has logged in. The current window must point to Login.html and main should ...

jquery / javascript setting width fails

Greetings! I have encountered this problem: Depending on numbers from I want to create a bar chart. Interestingly it works very well in IE8 set on quirks mode, but fails everywhere else. I cannot really say where the error is and I hope that someone here can help me. I am using jQuery, but using getElementById() and element.style.width...

Syntax quirks or why is that valid python

In python 2.6, why is the following line valid? my_line = 'foo' 'bar' and if that is valid, why isn't the following: my_list = 1 2 The first example is string concatenation, however, the following isn't valid either (thanks god): foo = 'foo' bar = 'bar' foo_bar = foo bar ...

Why certain DOCTYPE declarations cause 100%-height tables and divs to stop working?

It seems to me that some DOCTYPE declarations in IE (6-8) may cause the browser to ignore height="100%" on tables and divs (style="height:100%") E.g <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <title>Test1</title> </head> <body> <div style="border: 2px s...

height:100% problem in IE7, not in FF

I want to display a page with no scrollbar (height:100%). I have read suggestions to add this argument to html and body. But it does not work as I expect. In FF indeed I do not see a scrollbar. But in IE7 and 8 (Standards mode) there is a scrollbar. In Quirks mode it works as expected. Please take a look at this: <!DOCTYPE HTML ...

Firefox 3.6 destroyed my page styling!

Don't really want to blame mozilla on this one, i'm sure it could be me doing something silly but the page at: www. neverMindFixed .com the presentation will work fine on other browsers, just not the latest firefox. anyone clued up on this? Thanks! Si ...

Type Inference on Method Return Type

Why does Scala fail to infer the return type of the method when there's explicit return statement used in the method? For instance, why does the following code compile : object Main { def who = 5 def main(args: Array[String]) = println(who) } ...but the following doesn't : object Main { def who = return 5 def main(args: Arra...