tristen / tablesort

:arrow_up_down: A small tablesorter in plain JavaScript
https://tristen.ca/tablesort/demo/
MIT License
1.1k stars 179 forks source link

Empty table row returns getattr of undefined error #161

Open jamilalisgandarov opened 6 years ago

jamilalisgandarov commented 6 years ago

Hi, I use table row (data-sort-method='none') with one td for spacing between rows which causes error Cannot read property 'getAttribute' of undefined, because it can not find element.

Code example:

      <tr>
            <td>Arif Alishandarov</td>
            <td>Programming</td>
            <td>30-05-2018</td>
            <td>10-05-2018</td>
            <td>100</td>
            <td>11</td>
            <td>100000</td>
            <td>100</td>
            <td>23.02.2017</td>
            <td>1000</td>
            <td>10</td>
            <td>No idea</td>
            <td>yes</td>
            <td>Progress</td>
            <td>Qeyd</td>
            <td>Qeyd</td>
       </tr>
       <tr class="seperator" data-sort-method='none'>
           <td data-sort-method='none'> </td>
        </tr>