You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using simple-datatables (latest), the HTML is shown in the table, but not actually rendered
Changing it to use v5, the problem goes away (e.g. in the jsfiddle examples above, the spinner is shown for 10 seconds in the working one. In the broken one, it dispalys <div class="spinner-border" role="status"> <span class="visually-hidden">Loading...</span> </div>
To Reproduce
Steps to reproduce the behavior:
Create code as per the jsfiddle request which uses dataTable.setMessage
Configure the code as per the sample code block below
bubbletroubles
changed the title
[BUG]
[BUG] Using simple-datatables@latest writes, but does not render HTML
Nov 17, 2024
bubbletroubles
changed the title
[BUG] Using simple-datatables@latest writes, but does not render HTML
[BUG] Using simple-datatables@latest displays, but does not render HTML
Nov 17, 2024
@bubbletroubles Thanks for the example. It s a feature, not a bug. SDT was a mess back in the V5 days. I would not recommend to look at that at all. We now sanitize the input so that users even can use < and > in their status messages. It is not set up for you to add custom HTML elements there.
I take it your goal is to show a spinner in front of the tabel at certain times while waiting for data from the server. Can you not put such a spinner in front of the table in your own code? If there is a reason that is not possible, we could discuss adding some kind of class to the message so that you can then shwo the spinner based on the appearance of that.
I have looked through the documentation to try to see if this behavior is documented.
I have looked at the demos to see if one of them handles this, but none of them did.
I have created a jsfiddle here:
Broken jsfiddle - https://jsfiddle.net/3mx8d9ps/
Working jsfiddle - https://jsfiddle.net/4p7j2nk6/
Describe the bug
When using simple-datatables (latest), the HTML is shown in the table, but not actually rendered
Changing it to use v5, the problem goes away (e.g. in the jsfiddle examples above, the spinner is shown for 10 seconds in the working one. In the broken one, it dispalys
<div class="spinner-border" role="status"> <span class="visually-hidden">Loading...</span> </div>
To Reproduce
Steps to reproduce the behavior:
dataTable.setMessage
latest
version5
Expected behavior
When using
latest
the HTML should be rendered.Additional context
Here are the CDNs used
The text was updated successfully, but these errors were encountered: