IE7 JSON cannot have extra commas, IE8 create an IMG node under the bug

Source: Internet
Author: User

Details determine success or failure, to participate in the work soon, so some norms have not developed, a lot of wrong bugs

In the low version of IE, such as Ie7,json can not appear extra comma, otherwise will be error, but in other browsers, the problem does not exist.

such as

"Name", "Iexx",

"Age": 19,

}

This will be an error, need to remove the comma after 19 ...

IE8 Create an IMG node problem, which is also a compatibility bug, my creation code is var img=$ ("</img>"): There is a compatibility problem, change to Var img=$ ("

Under IE8, it will </img> unexpectedly also as an IMG node, so that when I insert the insertion of two IMG nodes, and img.attr (), will also give two IMG set SRC,

This resulted in redundant DOM nodes, which led to the appearance of my subsequent bugs.

Details determine success or failure.

To slowly standardize their own code ...

Share and progress together.

IE7 JSON cannot have extra commas, IE8 create an IMG node under the bug

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.