Skip to content

Commit 741fe39

Browse files
committed
Revert "Manipulation: execute scripts from iframe in the iframe's context"
This reverts commit 22449eb.
1 parent 91acd85 commit 741fe39

File tree

3 files changed

+1
-30
lines changed

3 files changed

+1
-30
lines changed

src/manipulation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function domManip( collection, args, callback, ignored ) {
192192
jQuery._evalUrl( node.src );
193193
}
194194
} else {
195-
jQuery.globalEval( node.textContent.replace( rcleanScript, "" ), doc );
195+
jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
196196
}
197197
}
198198
}

test/data/manipulation/scripts-context.html

Lines changed: 0 additions & 18 deletions
This file was deleted.

test/unit/manipulation.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,17 +2183,6 @@ testIframeWithCallback(
21832183
}
21842184
);
21852185

2186-
testIframeWithCallback(
2187-
"domManip executes scripts in iframes in the iframes' context",
2188-
"manipulation/scripts-context.html",
2189-
function( frameWindow, bodyElement, html, assert ) {
2190-
assert.expect( 2 );
2191-
jQuery( bodyElement ).append( html );
2192-
assert.ok( !window.scriptTest, "script executed in iframe context" );
2193-
assert.ok( frameWindow.scriptTest, "script executed in iframe context" );
2194-
}
2195-
);
2196-
21972186
QUnit.test( "jQuery.clone - no exceptions for object elements #9587", function( assert ) {
21982187

21992188
assert.expect( 1 );

0 commit comments

Comments
 (0)