Bug Tracker

Modify

Ticket #6099 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by dmethvin

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

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

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.