EXTJS2.2 reports an error in IE9: the object does not support "createContextualFrag

Source: Internet
Author: User
If the version is EXTJS2.2, it should be reported at the ext-all.js233 line: the object does not support the "createContextualFragment" attribute or method, this is a BUG of extjs2.2, it should have no IE9 at that time, only later versions solve this problem. I have encountered this problem in the past two days. According to the online check, many people have encountered this problem.

In EXTJS 2.2, it should be in ext-all.js 233 row error: object does not support the "createContextualFragment" attribute or method, this is a BUG of extjs2.2, it should be at that time no IE9, only later versions solve this problem. I have encountered this problem in the past two days. According to the online check, many people have encountered this problem.

In EXTJS 2.2, it should be in ext-all.js 233 row error: object does not support the "createContextualFragment" attribute or method, this is a BUG of extjs2.2, it should be at that time no IE9, only later versions solve this problem. I have encountered this problem in the past two days. According to the online query, many people have encountered the same problem. The solution is as follows:

Add the following code before the line where the ext-all.js reports an error:

If (typeof Range! = "Undefined ")&&! Range. prototype. createContextualFragment)
{
Range. prototype. createContextualFragment = function (html)
{
Var frag = document. createDocumentFragment (),
P = document. createElement ("p ");
Frag. appendChild (p );
P. outerHTML = html;
Return frag;
};

Note: The above code is provided by netizens.

I tried to solve the problem. However, EXTJS seems to have many problems in IE9. If it is set to the browser compatibility mode, many problems can be solved. I hope everyone can take out the problems they encountered in IE9, discuss them together, and find a solution.

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.