Skip to content

Commit

Permalink
Tests: Remove a workaround for a Firefox XML parsing issue
Browse files Browse the repository at this point in the history
Firefox 96-100 used to report the column number smaller by 2 than it should
in the `parsererror` element generated for invalid XML documents. Since that
version range is unsupported now and it includes no ESR versions, the workaround
can now be dropped.

Closes gh-5109
Ref gh-5018
  • Loading branch information
mgol committed Oct 3, 2022
1 parent 7eb0019 commit e7ffe1f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/unit/core.js
Expand Up @@ -1456,13 +1456,7 @@ QUnit.testUnlessIE( "jQuery.parseXML - error reporting", function( assert ) {
column = columnMatch && columnMatch[ 1 ];

assert.strictEqual( line, "1", "reports error line" );

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

testIframe(
Expand Down

0 comments on commit e7ffe1f

Please sign in to comment.