From 5d3a968e031ab8dff5c07e1d6bb4f196fb82bfa0 Mon Sep 17 00:00:00 2001 From: "basil.belokon" Date: Sun, 3 Dec 2017 15:58:09 +0600 Subject: Manipulation: Add support for scripts with module type Fixes gh-3871 Close gh-3869 --- test/unit/manipulation.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/unit/manipulation.js') diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 07ab43419..bfe41ed4e 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -1797,6 +1797,22 @@ QUnit.test( "html(Function)", function( assert ) { testHtml( manipulationFunctionReturningObj, assert ); } ); +QUnit.test( "html(script type module)", function( assert ) { + assert.expect( 1 ); + var fixture = jQuery( "#qunit-fixture" ), + tmp = fixture.html( + [ + "", + "", + "
", + "", + "", + "
" + ].join( "" ) + ).find( "script" ); + assert.equal( tmp.length, 4, "All script tags remain." ); +} ); + QUnit.test( "html(Function) with incoming value -- direct selection", function( assert ) { assert.expect( 4 ); -- cgit v1.2.3