SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    $books++ == true matsko's Avatar
    Join Date
    Sep 2004
    Location
    Toronto
    Posts
    795
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE compatibility just got a little easier

    I came across this library after reading a blog posting on NETTUTS.

    http://code.google.com/p/ie7-js/

    I figured that it was just another compatibility library where you have to manually code or flag the IE6 fixes; however I was astonished to see that the library does everything for you.

    For example, if you set something in CSS that IE6 doesn't support (like the sibling, child selector, or any attribute selectors), the script will actually match everything for you and apply it to IE6!

    The script will also apply the AlphaImageLoader automatically to any image (IMG or CSS background image) as long as the filename is prefixed with -trans.png.

    There is a lag in between (you can see the change), other then that it does fix a lot IE6 shortcomings. There also are a few bugs (max-height and max-width), but the library is still in beta so hopefully soon it'll be fully operational.

    There's also a IE8.js file which emulates IE6 and IE7 to run operate like IE8 (in terms of CSS 2.1 selectors).

    Enjoy
    I can't believe I ate the whole thing

  2. #2
    SitePoint Guru
    Join Date
    May 2004
    Location
    santa rosa, ca
    Posts
    969
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This looks very useful. One thing though is that you meant to say suffix and not prefix.

    Quote Originally Posted by matsko View Post
    I came across this library after reading a blog posting on NETTUTS.
    The script will also apply the AlphaImageLoader automatically to any image (IMG or CSS background image) as long as the filename is prefixed with -trans.png.

    Enjoy
    nondenominational, noncommercial, nonprofit,
    listener-supported, 24-hour, Christian ministry:
    Listen Live Online

  3. #3
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I saw this a while ago in Dean Edwards' blog. It's pretty good but I don't think it's worth it to be honest. If your site is so dependent on these fixes then surely it'll look horrible when JavaScript is disabled!

    It's a nice idea and I'm sure a lot of people use this script but I don't see myself using it in the future. Most IE6 bugs are easy to avoid without hacks or things like this. If I was to use this it would only be for the PNG fix. - And in this situation I'd probably opt for a much more lightweight solution anyway.
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm with Jimmy on this one - the only "fixes" I need are min/max-width/height, :hover :active :focus and PNG-24 alpha transparency support. Everything else can be handled with a combination of HTML and CSS - most of the time without hacks or conditional comments.

  5. #5
    $books++ == true matsko's Avatar
    Join Date
    Sep 2004
    Location
    Toronto
    Posts
    795
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    True.

    I never thought of a scenario of when JavaScript is disabled. Although my websites do use a JS framework and are pretty dependent on it.
    I can't believe I ate the whole thing


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •