Bug Tracker

Opened 10 years ago

Closed 9 years ago

#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:
Blocked by: Blocking:

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 (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.