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.

image

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 3.3.0.11 (will be upgrading to 3.3.0.13 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.

Just to add to this – there is also the series of warnings and errors returned from the validator regarding different code plugins. - I am using OJS 3.3.0.10

Warning : The type attribute is unnecessary for JavaScript resources.

Warning : The navigation role is unnecessary for element nav .

Warning : Attribute with the local name xmlns:i is not serializable as XML 1.0.

Warning : Attribute with the local name xmlns:dc is not serializable as XML 1.0.

Warning : Attribute with the local name xmlns:cc is not serializable as XML 1.0.

Warning : Attribute with the local name xmlns:rdf is not serializable as XML 1.0.

Warning : Attribute with the local name xmlns:svg is not serializable as XML 1.0.

Warning : Attribute with the local name xmlns:sodipodi is not serializable as XML 1.0.

Warning : Attribute with the local name xmlns:inkscape is not serializable as XML 1.0.

Warning : Attribute sodipodi:docname is not serializable as XML 1.0.

Warning : Attribute inkscape:version is not serializable as XML 1.0.

Warning : Element name rdf:rdf cannot be represented as XML 1.0.

Warning : Attribute rdf:about is not serializable as XML 1.0.

Warning : Element name cc:work cannot be represented as XML 1.0.

Warning : Element name dc:format cannot be represented as XML 1.0.

Warning : Attribute rdf:resource is not serializable as XML 1.0.

Warning : Element name dc:type cannot be represented as XML 1.0.

Warning : Attribute inkscape:pageopacity is not serializable as XML 1.0.

Warning : Attribute inkscape:pageshadow is not serializable as XML 1.0.

Warning : Attribute inkscape:window-width is not serializable as XML 1.0.

Warning : Attribute inkscape:window-height is not serializable as XML 1.0.

Warning : Attribute inkscape:zoom is not serializable as XML 1.0.

Warning : Attribute inkscape:cx is not serializable as XML 1.0.

Warning : Attribute inkscape:cy is not serializable as XML 1.0.

Warning : Attribute inkscape:window-x is not serializable as XML 1.0.

Warning : Attribute inkscape:window-y is not serializable as XML 1.0.

Warning : Attribute inkscape:window-maximized is not serializable as XML 1.0.

Warning : Attribute inkscape:current-layer is not serializable as XML 1.0.

Warning : Element name sodipodi:namedview cannot be represented as XML 1.0.

Warning : Attribute i:extraneous is not serializable as XML 1.0.

Warning : Attribute inkscape:connector-curvature is not serializable as XML 1.0.

Error : The scheme attribute on the meta element is obsolete. Use only one scheme per field, or make the scheme declaration part of the value.

Error : When the attribute xml:lang in no namespace is specified, the element must also have the attribute lang present with the same value.

Error : Saw <? . Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.)

Error : Attribute xmlns:i not allowed here.

Error : Attribute xmlns:dc not allowed here.

Error : Attribute xmlns:cc not allowed here.

Error : Attribute xmlns:rdf not allowed here.

Error : Attribute xmlns:sodipodi not allowed here.

Error : Attribute xmlns:inkscape not allowed here.

Error : Attribute sodipodi:docname not allowed on element svg at this point.

Error : Attribute inkscape:version not allowed on element svg at this point.

Error : Element rdf:rdf not allowed as child of element metadata in this context. (Suppressing further errors from this subtree.)

Error : Element sodipodi:namedview not allowed as child of element svg in this context. (Suppressing further errors from this subtree.)

Error : Attribute i:extraneous not allowed on element g at this point.

Error : Attribute inkscape:connector-curvature not allowed on element path at this point.

Error : Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)