SCRIPT70: Permission denied IE9

后端 未结 9 1496
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 08:40

I am getting the strange error \"SCRIPT70: Permission denied jquery.js, line 21 character 67\" on IE-9. Searched on google but could not find anything except a

9条回答
  •  孤街浪徒
    2020-12-14 08:51

    function Sizzle( selector, context, results, seed ) {
      var match, elem, m, nodeType,
    
      // QSA vars
      i, groups, old, nid, newContext, newSelector;
    
      // MY EDIT - this try/catch seems to fix IE 'permission denied' errors as described here:
      // http://bugs.jquery.com/ticket/14535
    
      try{
        document === document; //may cause permission denied
      }
      catch(err){
        document = window.document; //resets document, and no more permission denied errors.
      }
    
      if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
        setDocument( context );
      }
    
      //...... snip .........//
    }
    

    http://jsfiddle.net/xqb4s/

提交回复
热议问题