I have a large ASP.Net web application targeting .Net 4.5 which crashes IE 11 on a particular page. Development is in Visual Studio 2013 and Windows 7 x64.
I've spent the day cutting and simplifying the project down to a single ASPX page with no external dependencies.
Basically the problem occurs with 5 text fields (<input type="text" id="...") and a single HTML button. The button calls a Javascript function which uses document.getElementById() to blank each textbox.
When the page loads I type a single letter into each textbox then click the button to clear the contents. I then click in the first text box and press a character key on the keyboard. IE immediately crashes with an access violation. There are no event handlers of any kind on the textboxes and no jQuery dependency and no code behind.
<%@ Page Inherits="TPAX.LoginClass" Codebehind="index.aspx.vb" Language="vb" AutoEventWireup="false" %><!DOCTYPE HTML><html><head><title>Test</title><script type="text/javascript"> function ResetForm() { document.getElementById("txt1").value = ''; document.getElementById("txt2").value = ''; document.getElementById("txt3").value = ''; document.getElementById("txt4").value = ''; document.getElementById("txt5").value = ''; }</script></head><body><input type="text" id="txt1" /><br /><input type="text" id="txt2" /><br /><input type="text" id="txt3" /><br /><input type="text" id="txt4" /><br /><input type="text" id="txt5" /><br /><input type="button" value="Reset Form" onclick="ResetForm()" /></body></html>
If I copy this file to an HTML file and remove the first ASP.Net line and load the page in IE it also crashes. The test site launched in Chrome or Firefox does not crash. I've also launched the site in both the 64-bit and 32-bit versions of IE 11 and both
crash. At first I thought this had to do with a problem with IIS Express, .Net 4.5, IE 11 and maybe the web.config but I've been able to crash IE 11 just by opening this as a static HTML page.
If the first textbox is reset to an empty string and the other fields are reset to a single blank then IE crashes.
If I modify the Javascript to reset each text field to a single space instead of an empty string then there is no crash.
I don't know how to proceed or how to identify and fix the problem.
I appreciate any help. I can provide the project files if anyone is willing to take a look.