IE8 - Unknown Runtime Error Using innerHTML & Ajax

Originally released in the third border of the Institute szhshp , please indicate

IE8 compatibility issues - AJAX result of the use of inside .html()and innerHTMLerror

First of all I wish all the computers are still using IE8 blew the whole place

Then I wish all IE8 browser also supports all of the company blew place

Ok we look at the problem.

$.ajax({
  url: 'xxxxx',
  type: 'get'
})
.done(function(res) {
  $("#abc").html(res); // 报错
})

It reported a Unknown Runtime Error, Error damn not even explain all.

First of all the compatibility error only occurs in IE8, the follow-up version does not exist, other browsers do not exist.

Possible reasons include:

  1. Error nested tags, such as
  • liBefore and after no right ulor olhead and tail symbols
  • p Tag is erroneously nested
  • h1 May not be closed before and after
  1. form Tags are nested

The general is formthe cause of nested labels

Solution:

The nested tags removed

  • For example, I was formthere to open a modal, modal which shows another form, this time just to put modal formoutside to
  • p Tags nested inside is not correct, replace div

References

Internet Explorer FIX: Unknown Runtime Error Using innerHTML & Ajax

Guess you like

Origin www.cnblogs.com/szhshp/p/11297904.html