W3C Validator: Trailing slash on void elements

There are a number of warnings returned from the W3C Validator regarding trailing slashes on void elements, such as slashes at the end of and tags, which are not required. There doesn’t appear to be any way to prevent OJS from adding the trailing slashes on the stylesheets that are inserted by OJS.


Steps I took leading up to the issue

  1. Feed the website URL into the W3C Validator: https://validator.w3.org/
  2. Notice the warnings

I am using OJS version (will be upgrading to shortly)

Would it be possible for the core OJS code to be modified to remove the trailing slashes on elements that do not require them? (It would be great to eliminate these messages if possible).

Many thanks.

Just to add to this - there is also the series of warnings returned from the validator regarding the type attribute on script tags not being required.

Warning : The type attribute is unnecessary for JavaScript resources.