| Re: Pure HTML & CSS code that crashes IE7/8
Eric wrote on Wed, 1 Jul 2009 21:32:05 -0700:
> "Richard Crowley" wrote:
>> Doesn't "crash" when you provide the missing: </form>
>> "Crash" in my test was IE6 displaying a blank page with hourglass
>> cursor.
>> Easily closed with the window close [X] button.
> Which is why I prefaced the post with "Although clearer proper HTML
> would not cause this issue". Removing the CSS, the div, the table, etc
> all cause this code to not crash IE. (BTW, it crashes IE6 politely -
> but IE8 crashes really hard). This code started from a crash ifrom a
> >800 line HTML file and I narrowed it down to being this combination
> of structures that produces a crash.
> I'm not looking for a solution on how to fix this - I thought the IE
> dev team deserved to know a bug (not relying on JS or ActiveX) that
> would cause the browser to break.
IE8 on mine did the same as IE6 on Richard's PC - blank screen with
hourglass. No hard crash, but it did hang.
Adding the </form> and </div> that are missing cures it - there's no need to
remove anything, you just need to create valid HTML instead of lazy junk
with missing tags. A few seconds with a HTML validator would have sorted
that out.
While it would be nice for IE to not get stuck like this, it would be much
better for HTML authors to take a little more time and not put badly
formatted junk into their sites.
--
Dan |