$('td[colspan]') matches every td in IE
Hello,
In IE (tested 7 and 8), $('td[colspan]') seems to match every single td. In Firefox and Safari, though, it (correctly) returns only those which do have a colspan attribute. Here is a simple test:
- <table border="1">
- <tr>
- <td>Cell A</td>
- <td>Cell B</td>
- <td colspan="2">Cell B</td>
- </tr>
- </table>
- <script type="text/javascript">
- $(function(){
- $('td[colspan]').append(' has colspan');
- });
- </script>
I can't find any bug report related to colspan. Should I file one or am I missing the obvious?