Results 1 to 3 of 3
Sep 2, 2008, 16:18 #1
IE6 inherit DOCTYPE Bug? iframe always use parent's Doctype
I am fixing some bug on IE6. The issue is that the main window is using XHTML 1.0 strict, and an iframe inside of it has the statement
and clicking on it will cause almost the whole page to go blank.
but if I change the line to
<a href="#" onclick="some_function(1);return false;">a link</a>
then it won't make almost the whole page go blank.
I am suspecting that IE6 forces the iframe to also use DOCTYPE of XHTML 1.0 strict, even when the iframe explicitly specifies HTML 4.01 loose.
If someone knows of this bug, can you confirm it too? Thanks very much!
Sep 2, 2008, 16:34 #2
the problem is some_function() is not canceling the default behavior of the link as adding onclick="function();return false" does.Logic without the fatal effects.
All code snippets are licensed under WTFPL.
Sep 2, 2008, 16:43 #3
how can some_function() cancel it? I actually tried returning false or returning "haha", and I actually see "haha" or "false" showing up on the page.
I am so surprised that in
in IE 6, 7, Firefox 3, click on the link actually change the whole page to "haha", wiping out the whole content. In Google Chrome and Safari, it doesn't.