-
Notifications
You must be signed in to change notification settings - Fork 283
Description
-
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:
- Create code as per the jsfiddle request which uses
dataTable.setMessage - Configure the code as per the sample code block below
- Use the CDN files with
latestversion - The HTML is written, but not rendered
- Update the CDN files to pin to version
5 - The HTML is rendered
dataTable.setMessage(`
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
`);Expected behavior
When using latest the HTML should be rendered.
Additional context
Here are the CDNs used
<link
href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css"
rel="stylesheet"
type="text/css"
/>
<script
src="https://cdn.jsdelivr.net/npm/simple-datatables@latest"
type="text/javascript"
></script>