Skip to main content

Bug Tracker

Side navigation

#4081 closed bug (fixed)

Opened February 06, 2009 12:13AM UTC

Closed February 14, 2009 10:25PM UTC

Last modified February 14, 2009 10:25PM UTC

Simple name selector not working in 1.3.1 with IE 6

Reported by: luqi Owned by: john
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:
Description

It works fine in 1.2.6 but not working in 1.3.1.

Attachments (1)
  • proof.html (0.6 KB) - added by luqi February 06, 2009 12:14AM UTC.
Change History (7)

Changed February 11, 2009 06:15AM UTC by Rwhitbeck comment:1

Interesting. In IE6 and IE8RC the selector he is using doesn't work in 1.3 or 1.3.1 but works fine in 1.2.6

If you add a td to the selector I can get the text() method to return the text. ( $("tr[name='pv'] td").text(); -> content before)

If you put a name on the td and try to select it with the name attribute it still won't work ($("td[name='pv1']").text(); -> blank)

If you try a different attribute other then name it works fine. change <tr name="pv"> to <tr valign="top"> and use the selector ( $("tr[valign='top']").text(); -> content before ) works as expected.

Tested in both IE6 and IE8RC don't have access to IE7.

Hope this helps in troubleshooting the bug.

Changed February 11, 2009 06:19AM UTC by Rwhitbeck comment:2

Additional info: tested against Firefox 3 worked as expected. Tested against Safari worked as expected.

Tested in IE against the nightly built and it failed as stated above.

Changed February 11, 2009 06:27AM UTC by Rwhitbeck comment:3

One last thought. the TR tag does not have a "name" attribute listed as a optional or standard attribute. This maybe why it doesn't work correctly in IE.

http://www.w3schools.com/tags/tag_tr.asp

Changed February 12, 2009 09:26PM UTC by seasoup comment:4

I reproduced this bug in ie7 as well

<table>

<tbody name="testname">

<tr>

<td>test</td>

</tr>

</tbody>

</table>

<script>alert($('[name=testname]').size());</script>

// alerts 1 in firefox 3.06, chrome, opera 9.62, webkit, safari 3.2.1, and 0 in ie7, ie6

Changed February 12, 2009 09:28PM UTC by seasoup comment:5

@Rwhitbeck tested it in the table tag as well, same results.

Changed February 14, 2009 10:25PM UTC by john comment:6

resolution: → fixed
status: newclosed

Fixed in SVN rev [6202].

Changed February 14, 2009 10:25PM UTC by john comment:7

priority: blockermajor