IE8 crashes with 10,000+ checkboxes in a frameset

Discussion in 'Internet Explorer' started by David, Jan 7, 2010.

  1. David

    David Guest

    IE8 will consistantly crash on a page that contains 10,000 checkboxes only if
    it is in a frameset. It works fine in IE7.

    Place the following code in an asp.net vb page and put that page in a
    frameset. It will crash.

    Dim i As Integer
    For i = 1 To 11000
    Response.Write("<br><input type='checkbox' name='cb" & i & "' value='1' />
    My CB" & i & "<br>")
    Next
     
    David, Jan 7, 2010
    #1
    1. Advertisements

  2. Developer-specific resources include:

    MSDN IE Development Forums <=post such questions here instead
    http://social.msdn.microsoft.com/forums/en-US/category/iedevelopment/

    IE Developer Center
    http://msdn.microsoft.com/en-us/ie/default.aspx

    Learn IE8
    http://msdn.microsoft.com/en-us/ie/aa740473.aspx

    HTML and DHTML Overviews and Tutorials
    http://msdn.microsoft.com/en-us/library/ms537623.aspx and

    Cascading Style Sheets (CSS)
    http://msdn2.microsoft.com/en-us/ie/aa740476.aspx

    Expression Web SuperPreview for Internet Explorer (free, stand-alone visual
    debugging tool for IE6, IE7, and IE8)
    http://www.microsoft.com/downloads/...FamilyID=8e6ac106-525d-45d0-84db-dccff3fae677

    Expression Web SuperPreview Release Notes
    http://www.microsoft.com/expression/products/Web_SuperPreviewReleaseNotes.aspx

    Validators:
    http://validator.w3.org/
    http://jigsaw.w3.org/css-validator/
     
    PA Bear [MS MVP], Jan 7, 2010
    #2
    1. Advertisements

  3. David

    David Guest

    This is not a development issue, it is a bug in IE8. I was simply providing
    some code that would easily reproduce the issue, rather than posting static
    HTML with 10,000 checkboxes in it. If you prefer, I will.
     
    David, Jan 7, 2010
    #3
  4. David

    rob^_^ Guest

    Start by writing validated markup.
     
    rob^_^, Jan 7, 2010
    #4
  5. David

    David Guest

    I can assure you the "unvalidated" <br> tags have nothing to do with the bug.
     
    David, Jan 7, 2010
    #5
  6. David

    VanguardLH Guest

    You thought that any program could have an infinite number of objects that
    it could track along with any values or properties for them? So maybe you
    hit some max handler count. At 1 second for a very speedy user to read any
    text that you put next to the checkbox to describe what it was for, they
    would be reading your form for 2.8 hours. You are obviously not generating
    a *usable* document or form.

    So when you did the test against Firefox, Chrome, Opera, and other web
    browsers, what was their maximum object count? Are you attempting to test
    for some buffer overrun vulnerability?

    The IE development groups might have folks familiar with any max object
    counts within a document (web page) or within a frame.
     
    VanguardLH, Jan 7, 2010
    #6
  7. David

    rob^_^ Guest

    Hi,

    Please consider your test case when posting to the MSDN forums.

    First. 10000 checkboxes on a web page is ridiculous. No sane developer would
    do that. (It is recommended that your pages should load within 3 seconds).
    It would take a user the better part of a week to work their way through the
    page and check/uncheck 10000 options.
    If you are using that many checkboxes, use a datagrid with pagination
    instead.

    Second, IE8 uses (unknown) algorithms to determine when to switch Browser
    Mode to render the page in. There are registry settings that set the limits
    to the number of errors that it encounters before it gives up the ghost and
    displays the "Page cannot be displayed" error page.
    (They are being kind... the message should read.. "the developer who wrote
    this page has made over 20000 errors.... we have stopped the page from
    loading to save them from embarrassment" try again in 6 months when they
    have fixed their excessive mistakes)

    I can assure you, your "unvalidated" <br> tags HAS A LOT to do with the
    bug. But more than likely the sheer number of elements is the issue.

    There are also probably limits on the time allowed to load a frameset
    iframe, otherwise cross frame scripting could run out of control and freeze
    the browser or infect the client machine with malicious code. Hence the
    security zone that your fameset and iframe pages are in will have a bearing.

    Saying that it works in other browsers is irrelevant. Its Apples and Pears
    to compare the error handling between browsers. What matters is that your
    Markup and layout are validated for your selected DTD's.

    IE8 feedback can be posted directly at connect.microsoft.com if you want to
    waste more of your own time. The answers here and at the MSDN forums are
    mostly volunteers and enthusiasts.

    Regards.
     
    rob^_^, Jan 7, 2010
    #7
  8. What is the practical application of having 10,000+ checkboxes on a single
    page, much less a single site?

    Maybe it's not a bug at all, but rather an understanding that they (MSoft)
    don't need to support 10,000 checkboxes at once. Just a thought ...
     
    Jeff Strickland, Jan 7, 2010
    #8
  9. Uh-huh...
     
    PA Bear [MS MVP], Jan 8, 2010
    #9
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.