Description of a bug in the local storage of userdata by IE

Source: Internet
Author: User

For more information about userdata, click here.

Again, the project uses IE's userdata. When the user does not use the flash plug-in to store some chat records

Trigger bug? Condition:

1. Use userdata to store two properties XXX in the same XML file. setattribute ('A', '123'); XXX. setattribute ('B', '123'); XXX. save ('xmlname ');

In this case, <rootstub A = "111" B = "222"/>

2. Press Ctrl + F5 to refresh the page and delete the known attribute 'a' through XXX. removeattribute ('A'). Expected results: <rootstub B = "222"/>

Actual results: <rootstub/>

Bug? : Another attribute is deleted when a property is deleted.

I guess that userdata may be associated with IE's own cache to some extent during operations. Why is the cache lost after a strong click?

Solution:

When deleting a property, use XXX first. load ('xmlname'); var val = xxx. getattribute ('B'); load the other property and save it in a variable. After removeattribute is successful, set setattribute ('B', Val) of attribute B to return.

Thank you for your help.

PS: how nice it is to use storage?

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.