Validator.w3.org is having an issue with default script

Hi, I included the script and ran my site through w3c validator.

The validator gave me “Trailing slash on void elements has no effect”. It comes from your <img … /> tag. Removing the trailing slash removes the problem.

I have prepared a test case:

Good:
https://monibot.io

Bad:
https://monibot.io/simple

It’s the exact same page, but one has your original script and one has the modified version.

It’s no big deal but having an empty validator page gives extra peace-of-mind.

Thank you

I don’t see the trailing slash difference between:

https://monibot.io:

<!-- Simple Analytics - 100% privacy-first analytics -->
<!-- modifed version with trailing slash on <img> tag removed -->
<script data-collect-dnt="true" async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade"></noscript>

https://monibot.io/simple:

<!-- Simple Analytics - 100% privacy-first analytics -->
<!-- original version from https://docs.simpleanalytics.com/script -->
<script async defer src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>

Would you mind to explain?

Ah, yes of course, please see the following W3C validator checks:

  1. https://validator.w3.org/nu/?doc=https%3A%2F%2Fmonibot.io%2F
    Output:
    “Document checking completed. No errors or warnings to show.”

  2. https://validator.w3.org/nu/?doc=https%3A%2F%2Fmonibot.io%2Fsimple
    Output:
    “Info: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.”

Does that explain what I mean?