Bug Tracker

Modify

Ticket #6789 (closed bug)

Opened 3 years ago

Last modified 3 years ago

Check on nodeName results in an error

Reported by: Matthijs Steen Owned by:
Priority: Milestone: 1.4.3
Component: selector Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

The following line:

return (match === "*" && elem.nodeType === 1)
elem.nodeName.toLowerCase() === match;

at Sizzle.selectors.filter.TAG is causing errors when using the jQuery.is('tag'); method.

The line should be rewritten to:

return (match === "*" && elem.nodeType === 1)
elem.nodeName && elem.nodeName.toLowerCase() === match;

Change History

comment:1 Changed 3 years ago by dmethvin

Do you have a test case that will cause the error you are seeing? What is the error?

comment:2 Changed 3 years ago by dmethvin

  • need changed from Commit to Test Case

comment:3 Changed 3 years ago by snover

  • Status changed from new to pending

This ticket has been marked as missing a test case. In an effort to reduce the number of outstanding tickets in the bug tracker, it will be closed automatically in 30 days. In order to prevent this from happening, please provide a working test case. If a test case has already been provided and our records are wrong, please respond to the ticket so that it can be fixed. Thank you!

comment:4 Changed 3 years ago by trac-o-bot

  • Status changed from pending to closed

Automatically closed due to 14 days of inactivity.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.