Calling a javascript-method causes IE 8 to crash
- by Andreas Niedermair
good morning!
some basic infos:
engine is asp.net (specific version is not relevant)
runs on iis (specific version is not relevant)
asp-button is hidden
why?! wtf?!:
this example is used in some modal-confirmation: user clicks delete, ui shows modal-dialog. so, the visible button would be the yes-button, when clicked one, would cause a postback of the original asp-button (as i'm using the jquery-dialog plugin).
and i have this html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
// head tags go here
</head>
<body>
<div style="display: none;">
<asp:Button runat="server" ID="hiddenBt" />
</div>
<button id="visibleBt">Yes</button>
<script type="text/javascript">
$(document).ready(function() {
var visibleButton = $('#visibleBt');
var hiddenButton = $('#<%= this.hiddenBt.ClientID %>');
visibleButton.click(function() {
__doPostBack(hiddenButton.attr('name');
});
});
</script>
</body>
</html>
so ... if i'm running IE8 and non-compatiblity view, hitting the yes-button will crash the ie8-rendering-engine
Version=1
EventType=MSHTMLLAYOUTHARDASSERT
EventTime=129197590067237499
Consent=1
UploadTime=129197590067257499
ReportIdentifier=4b752ddb-6c79-11df-8bf6-001aa0b266a7
WOW64=1
Response.BucketId=1064991109
Response.BucketTable=5
Response.type=4
Sig[0].Name=AppName
Sig[0].Value=iexplore.exe
Sig[1].Name=AppVer
Sig[1].Value=8.00.7600.16385 (win7_rtm.090713-1255)
Sig[2].Name=ModName
Sig[2].Value=mshtml.dll
Sig[3].Name=ModVer
Sig[3].Value=8.00.7600.16385 (win7_rtm.090713-1255)
Sig[4].Name=Offset
Sig[4].Value=0x002B5031
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7600.2.0.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=3079
State[0].Key=Transport.DoneStage1
State[0].Value=1
FriendlyEventName=Webpage display problem
ConsentKey=MSHTMLLAYOUTHARDASSERT
AppName=Internet Explorer
AppPath=C:\Program Files (x86)\Internet Explorer\iexplore.exe
ReportDescription=A problem displaying a webpage caused Internet Explorer to refresh the page using Compatibility View.
any help would be appreciated!