Side navigation
#6099 closed bug (invalid)
Opened February 15, 2010 11:00AM UTC
Closed June 18, 2010 02:39AM UTC
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 ?
Attachments (0)
Change History (1)
Changed June 18, 2010 02:39AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Can you reopen with a complete test case? What is your doctype for example? Spans don't have a name attribute.