Skip to content

Firefox throws error in Sizzle due to XHTML violation in feature check #1969

@herbalite

Description

@herbalite

Under circumstances, that I have not yet been able to reproduce as a simple test case Firefox 34 throws a system error.

In Firebug I get the following error output. The invisible char in the output below (after select id="sizzle1419480912644-invisible char" is in fact a line feed shown by Firebug.

...4'></a><select id='sizzle1419480912644-]' msallowcapture=''><option selected=''...

malformed input

From the popup over the error code my guestimate it is an issue of mix between XHTML and HTML tags.
As the in the popup over the error line the link reads

<html xmlns="http://www.w3.org/1999/xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><a id="sizzle1419480912644"></a><select id='sizzle1419480912644-]' msallowcapture=''><option selected=''...

So there's the switch from xhtml to html
The source code for 2.1.3 for this issue is found on line 1176 and has the following code

                "<select id='" + expando + "-\f]' msallowcapture=''>" +

That code changed from 2.1.1. to 2.1.3 and the issue it seems to be that -\f is being interpreted by Firefox as a line feed and trips up Firefox. With other browsers I don't see this issue. The issue is also present in the minified version.

Except for the showing in the debugger however the page appears to work fine. So for me it's not a show stopper, but a step backwards from 2.1.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions