#4081 closed bug (fixed)
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)
Change History (8)
Changed 14 years ago by
Attachment: | proof.html added |
---|
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
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.
comment:3 Changed 14 years ago by
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.
comment:4 Changed 14 years ago by
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
comment:7 Changed 14 years ago by
Priority: | blocker → major |
---|
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.