Modify ↓
Ticket #7619 (closed bug: duplicate)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
