IE Compatible Issues

Javascript:

  1. new Date([date string]):
    '2012-1-1 00:00' won't work in IE
    Solution: date_string.replace(/\-/ig, '/');
  2. array.indexOf(value)
    Better use $.inArray() of jQuery
  3. Declaration of HTML document matters!! Especially for IE:
    Reference: http://stackoverflow.com/questions/630984/jquery-ui-dialog-issue-with-ie
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
  4. "console.log()" could cause error <= IE8

 

CSS:

  1. "max-width" won't work < IE8
    Solution: Container must set specific width and height.
  2.  

One thought on “IE Compatible Issues

  1. nancy

    Hey There. I found your blog the use of msn. This is a very
    well written article. I will make sure to bookmark it
    and return to learn more of your useful info. Thank you
    for the post. I’ll definitely comeback.

Comments are closed.