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
I have searched open and closed issues to make sure that the bug has not yet been reported
Issue is a Bug Report
This is a bug report and not a feature request, nor asking for self-hosted support
Using official Plausible Cloud hosting or self-hosting?
Plausible Cloud from plausible.io
Describe the bug
As per File downloads tracking, the script can be configured to track different file types than the default list by adding a file-types attribute to <script>. However, this is not a valid attribute for that element, so the HTML validator reports an error Attribute file-types not allowed on element <script> at this point..
To verify, you may try to validate this minimal HTML file:
Past Issues Searched
Issue is a Bug Report
Using official Plausible Cloud hosting or self-hosting?
Plausible Cloud from plausible.io
Describe the bug
As per File downloads tracking, the script can be configured to track different file types than the default list by adding a
file-types
attribute to<script>
. However, this is not a valid attribute for that element, so the HTML validator reports an errorAttribute file-types not allowed on element <script> at this point.
.To verify, you may try to validate this minimal HTML file:
Consider introducing a data attribute alias
data-file-types
(or deprecating the current one), as data attributes can be completely arbitrary.EDIT:
I see that
add-file-types
also exists: https://github.com/plausible/analytics/blob/ca25b6c7649c6ab9c9268eb57c7931dca1393b94/tracker/src/customEvents.js#L89C5-L89C22 but it's completely undocumented. Could this be a good opportunity to document it too?Expected behavior
Including Plausible's script does not result in any additional validation errors.
Screenshots
No response
Environment
No response
The text was updated successfully, but these errors were encountered: