1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

CRASH IE6 with one line of code (CSS)

Discussion in 'CSS' started by Noddegamra, Aug 8, 2007.

  1. #1
    This is just a bit of fun really. For all the CSS IE hating geeks out there. lol :)


    "A Japanese blogger who goes by the name Hamachiya2 has discovered a single line of HTML and CSS that crashes IE 6. The line is:

    Code:

    <style>*{position:relative}</style><table><input></table>
    Code (markup):

    If you’re brave, you can click here to try it out. The code is rendered correctly in Firefox, Safari and Opera (didn’t get a chance to try any other browsers, but presumably they work too). But in IE 6 it raises a fatal error in mshtml.dll."


    Source Links:
    http://www.noddegamra.co.uk/forum/general-discussion/crash-ie6-with-one-line-of-code/0/
    http://immike.net/blog/2007/08/06/single-line-of-html-crashes-ie-6/
     
    Noddegamra, Aug 8, 2007 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Also doesn't take down IE7... but it does also take down IE 5.0 and 5.5 win.

    CUTE.
     
    deathshadow, Aug 8, 2007 IP
  3. Noddegamra

    Noddegamra Peon

    Messages:
    1,013
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hehehe - I hadn't tested those :)
     
    Noddegamra, Aug 9, 2007 IP
  4. twistedspikes

    twistedspikes Notable Member

    Messages:
    5,694
    Likes Received:
    293
    Best Answers:
    0
    Trophy Points:
    280
    #4
    this is just stupid really...:/
     
    twistedspikes, Aug 9, 2007 IP
  5. Noddegamra

    Noddegamra Peon

    Messages:
    1,013
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I agree it is kinda stupid, but that's not the point. This is purely for entertainment.

    One of the biggest gripes amongst web designers is how IE renders CSS differently (and incorrectly) compared to browsers such as FireFox.

    This is just a line of code that exploits that. Funny for web designers, programmers, web geeks, but I guess not so much fun for general public :)
     
    Noddegamra, Aug 9, 2007 IP
  6. Robert Allen

    Robert Allen Peon

    Messages:
    2,685
    Likes Received:
    247
    Best Answers:
    0
    Trophy Points:
    0
    #6
    In my honest opinion, place a warning on the homepage of the site warning that IE6 is a unacceptable browser for the site, and tell people to download firefox. Add the code and watch your visitors drop slightly and get rid of IE6 users from the site.

    Rob
     
    Robert Allen, Aug 9, 2007 IP
  7. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #7
    * html { height:100%; }
    * html body { background:url(omg.jpg) no-repeat center center; }

    and omg.jpg is an MS-like message saying there's a new virus and IE6 is vulnerable, so the user has to upgrade his browser to IE7 or switch :)
     
    soulscratch, Aug 9, 2007 IP
    VimF likes this.