jQuery append() IE error

by OfirYaron 1/5/2011 2:18:00 AM

I'm developing most of my web application using firefox, (it's much easier and there's no match for the FF-FireBug), before I check-in my changes I usually check the new pages on the other major browsers and most of the times there are only a few CSS isuues that easlly resolved, 

JS or jQuery for that matter never gave me problem on none of the other browsers EXCEPT IE!

In IE it turns out that the $.append() attribute won't replace contents , I though a could build a little work-around by using $.html() but ended up with the same result,

finally I figured it out, It seems that IE ignore the DOM injection if the HTML I'm tring to append is invalid (i.e. opening and closing tags match).  I guess it makes sence, but I still hate this browser!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

jQuery

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Recent posts

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012

Sign in