From ee6e874075ba1fcd8f9e62cd1ee5c04f6518b6d6 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Mon, 10 Oct 2022 18:15:34 +0200 Subject: Manipulation: Extract domManip to a separate file We've already had `buildFragment` extracted to a separate file long ago. `domManip` is quite a complex & crucial API and so far it has existed within the `manipulation.js` module. Extracting it makes the module shorter and easier to understand. A few comments / messages in tests have also been updated to not suggest there's a public `jQuery.domManip` API - it's been private since 3.0.0. Closes gh-5138 --- test/unit/ajax.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/unit/ajax.js b/test/unit/ajax.js index e4d0efca5..05dd7d36c 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -2502,9 +2502,9 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re } ); } ); -//----------- jQuery.domManip() +//----------- domManip() - QUnit.test( "trac-11264 - jQuery.domManip() - no side effect because of ajaxSetup or global events", function( assert ) { + QUnit.test( "trac-11264 - domManip() - no side effect because of ajaxSetup or global events", function( assert ) { assert.expect( 1 ); jQuery.ajaxSetup( { @@ -2558,7 +2558,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re ); QUnit.test( - "trac-11402 - jQuery.domManip() - script in comments are properly evaluated", + "trac-11402 - domManip() - script in comments are properly evaluated", function( assert ) { assert.expect( 2 ); jQuery( "#qunit-fixture" ).load( baseURL + "cleanScript.html", assert.async() ); -- cgit v1.2.3