Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8 Support #74

Closed
jamiebuilds opened this issue Jan 20, 2015 · 5 comments
Closed

IE8 Support #74

jamiebuilds opened this issue Jan 20, 2015 · 5 comments

Comments

@jamiebuilds
Copy link
Contributor

6to5 supports IE8 for most things, but our website doesn't and I don't think it would be difficult to.

@sparty02
Copy link
Contributor

Items to address

  • JS
    • Consider lodash and/or ES5 shims
    • Downgrade jQuery (to pre 1.9 or 1.9+ w/ jQuery-migrate)
  • CSS
    • Bootstrap recomends Respond.js for IE8 (media query polyfill)
  • SVG
    • This might be a little trickier (the 6to5 logo is in SVG)
  • @font-face

@jamiebuilds
Copy link
Contributor Author

jQuery needs to be downgraded as well.

@sparty02
Copy link
Contributor

@thejameskyle The caveats docs currently say the following, which makes me wonder how much effort we should put into IE8 support. I get the impression from the wording that the expectation is more or less to polyfill up to ES5 and watch out for un-workaroundable (prolly not a word) cases like Object.defineProperty. Thoughts?

ES5

Since 6to5 assumes that your code will be ran in an ES5 environment it uses ES5
functions. So if you're using an environment that has limited or no support for
ES5 such as lower versions of IE then using the
es5-shim along with the
6to5 polyfill will add support for these methods.

Internet Explorer

Classes (10 and below)

If you're inheriting from a class then static properties are inherited from it
via proto,
this is widely supported but you may run into problems with much older browsers.

NOTE: __proto__ is not supported on IE <= 10 so static properties
will not be inherited. See the
protoToAssign for a possible work around.

Getters/setters (8 and below)

In IE8 Object.defineProperty can only be used on DOM objects. This is
unfortunate as it's required to set getters and setters. Due to this if
you plan on supporting IE8 or below then the usage of getters and setters
isn't recommended.

Reference: MDN.

@jamiebuilds
Copy link
Contributor Author

There isn't a whole lot to do in order to add IE8 support, it's also the one place online that is guaranteed to have up to date version of 6to5 to use the REPL with for testing. I think it's worth doing.

@sebmck
Copy link
Contributor

sebmck commented Mar 7, 2015

IE8 sucks eggs.

@sebmck sebmck closed this as completed Mar 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants