JavaScript IE appendChild() - Unexpected call to method or property access

后端 未结 7 825
旧巷少年郎
旧巷少年郎 2021-01-13 08:55

I have been having this problem in IE. I have two divs which I use to drag selected elements from one to another. Lets say I have a child element (also a div) in div1 and so

7条回答
  •  悲哀的现实
    2021-01-13 09:09

    I had this issue in IE7 and it turned out to be that the IE7 DOM was not perfect.

    In my case I had an image tag rendered by the ASP.NET MCV TagBuilder, which rendered it as:

    
    

    Note the ending tag there and that was what caused the problem. It worked when rendered as:

    
    

    Hope this helps.

提交回复
热议问题