Bug Tracker

Modify

Ticket #7619 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

selectors broken if id contains period

Reported by: mschaefers@… Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:

Description

In the following example the console output is supposed to be "1", but as long as the id attribute contains a period, the find selector does not work.

jQuery 1.4.3 works as expected.

<html>
<head>
<script type="text/javascript"
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
</head>

<body>

<script type="text/javascript">
$(document).ready(function() {
    console.info($('div').find('input').length)
});
</script>

<div id="test.id"><input type="checkbox"></div>
</body>
</html>

Change History

comment:1 Changed 2 years ago by addyosmani

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 2 years ago by addyosmani

Duplicate of #7533.

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.