Importing Table Removes HTML5 data- Attributes
-
Using the latest version of plugin. Previously I used JSON format to import tables, but I need extra DataTables functionality (support for HTML5 data-order attribute for specified cells), so I switched to pure HTML.
Problem: when table is imported, all HTML5 attributes are removed. Let’s say HTML file looks like this:
<table> <tr><td data-order='1'>Monday</td><tr> <tr><td data-order='2'>Tuesday</td><tr> <tr><td data-order='3'>Wednesday</td><tr> <tr><td data-order='4'>Thursday</td><tr> <tr><td data-order='5'>Friday</td><tr> <tr><td data-order='6'>Saturday</td><tr> <tr><td data-order='7'>Sunday</td><tr> </table>
After import it becomes:
<table> <tr><td>Monday</td><tr> <tr><td>Tuesday</td><tr> <tr><td>Wednesday</td><tr> <tr><td>Thursday</td><tr> <tr><td>Friday</td><tr> <tr><td>Saturday</td><tr> <tr><td>Sunday</td><tr> </table>
Which causes problems because sorting for such column works not as user expects. How can I preserve HTML5 attributes during HTML import (or how can I add them to JSON file)?
P.S. I also noticed that plugin uses very old version of DataTables. Could you update it, please?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Importing Table Removes HTML5 data- Attributes’ is closed to new replies.