datatable: use style table-row-group, more portable - jscancer - Javascript crap (relatively small)
 (HTM) git clone git://git.codemadness.org/jscancer
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 118c93a8de2037ab3ec38e1bf17c6a3fc00cb01b
 (DIR) parent d5d0f00c5141d8df1bcdb7d659a7ee553d3c6ec4
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Thu, 17 Aug 2017 19:07:02 +0200
       
       datatable: use style table-row-group, more portable
       
       Diffstat:
         M datatable/datatable.js              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/datatable/datatable.js b/datatable/datatable.js
       @@ -123,7 +123,7 @@ function datatable_init(el) {
                                for (var i = 0; i < data.length; i++)
                                        tbody.appendChild(data[i].tr);
                                d.table.replaceChild(tbody, d.tbody);
       -                        tbody.hidden = !data.length;
       +                        tbody.style.display = data.length ? "table-row-group" : "none";
                                d.tbody = tbody;
                        };
                }