🌐 AI搜索 & 代理 主页
Skip to content

Commit e76609c

Browse files
committed
Tests: Fix one selector test
The failure was caused by incorrect usage of self-closing tags, incompatible with jQuery 3.5.0+. As of this commit, all tests pass in Firefox 104.0.2 and almost all in Chrome 105.0.5195.102 - with the exception of ones fixed in jquerygh-5107. From Sizzle tests run on `jQuery.find`, apart from the above, there are still two failures in both these browsers: * `selector: id`: ID Selector on Form with an input that has a name of 'id' (#lengthtest) * `utilities: Sizzle.uniqueSort`: Attached/detached mixture (array) & Attached/detached mixture (quasi-array)
1 parent 3dbdb21 commit e76609c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/selector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ QUnit.test( "pseudo - nth-child", function( assert ) {
852852
QUnit.test( "pseudo - nth-last-child", function( assert ) {
853853
assert.expect( 30 );
854854

855-
jQuery( "#qunit-fixture" ).append( "<form id='nth-last-child-form'/><i/><i/><i/><i/>" );
855+
jQuery( "#qunit-fixture" ).append( "<form id='nth-last-child-form'></form><i></i><i></i><i></i><i></i>" );
856856
assert.t( "Nth-last-child", "form:nth-last-child(5)", [ "nth-last-child-form" ] );
857857
assert.t( "Nth-last-child (with whitespace)", "form:nth-last-child( 5 )", [ "nth-last-child-form" ] );
858858

0 commit comments

Comments
 (0)