Skip to content

Commit af1cd6f

Browse files
authored
Tests: Workaround an XML parsing bug in Firefox
See https://bugzilla.mozilla.org/show_bug.cgi?id=1751796 Closes gh-5018
1 parent 683ceb8 commit af1cd6f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/unit/core.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,13 @@ QUnit.testUnlessIE( "jQuery.parseXML - error reporting", function( assert ) {
14561456
column = columnMatch && columnMatch[ 1 ];
14571457

14581458
assert.strictEqual( line, "1", "reports error line" );
1459-
assert.strictEqual( column, "11", "reports error column" );
1459+
1460+
// Support: Firefox 96-97+
1461+
// Newer Firefox may report the column number smaller by 2 than it should.
1462+
// Accept both values until the issue is fixed.
1463+
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1751796
1464+
assert.ok( [ "9", "11" ].indexOf( column ) > -1, "reports error column" );
1465+
// assert.strictEqual( column, "11", "reports error column" );
14601466
} );
14611467

14621468
testIframe(

0 commit comments

Comments
 (0)