Side navigation
#12218 closed bug (worksforme)
Opened August 08, 2012 08:05AM UTC
Closed August 08, 2012 01:19PM UTC
IE9 "access refused" error when using a selector to build a fragment
Reported by: | softlion@softlion.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8rc1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$('<a href="#"></a>') fails on IE9 with "access refused" error.
The problem happens in buildFragment when accessing context.ownerDocument property.
Quick Fix:
jQuery.buildFragment = function( args, context, scripts ) {
var fragment, cacheable, cachehit,
first = args[ 0 ];
// Set context from what may come in as undefined or a jQuery collection or a node
context = context || document;
try {
context = (context[0] || context).ownerDocument || context[0] || context;
}
catch(e) {
context = context[0] || context;
}
Attachments (0)
Change History (1)
Changed August 08, 2012 01:19PM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
http://jsfiddle.net/QFfRN/1/show/ IE 9.0.8112.16421
http://jsbin.com/efakul/2 Double check