Ticket #6099 (closed bug: invalid)
bug in child name selector ?
| Reported by: | spacefrog | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.2 | |
| Component: | attributes | Version: | 1.4.1 |
| Keywords: | name | Cc: | |
| Blocking: | Blocked by: |
Description
<div id="foo"> <span name="bar">test</span> <span name="bar">test</span> <span name="bar">test</span> <span name="bar">test</span> <span name="bar">test</span> <span name="bar">test</span> <span name="bar">test</span> <span name="bar">test</span> <input type="text" name="bar" /> </div> <script type='text/javascript'> var temps = $("#foo > span[name=bar]") alert( temps.length ) </script> </body>
this only seems to work with : <script type='text/javascript' src='jquery-1.4.1.min.js'></script>
does not work with: <script type='text/javascript' src='jquery-1.4.1.js'></script> <script type='text/javascript' src='jquery-1.4.1.pack.js'></script>
There are many ways around this (exotic attribut, class ...), but my point is why doesn't it work with other than min version ?
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.

Can you reopen with a complete test case? What is your doctype for example? Spans don't have a name attribute.