futtta / autoptimize

Official Autoptimize repo on Github
https://autoptimize.com/pro/
GNU General Public License v2.0
283 stars 87 forks source link

W3C HTML Checker: Trailing slash #396

Closed r23 closed 1 year ago

r23 commented 1 year ago

The W3C HTML Checker https://validator.w3.org/nu/ unfortunately shows warnings/information when checking your WordPress for valid HTML

Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. https://github.com/validator/validator/wiki/Markup-%C2%BB-Void-elements#trailing-slashes-in-void-element-start-tags-do-not-mark-the-start-tags-as-self-closing https://github.com/validator/validator/wiki/Markup-%C2%BB-Void-elements#trailing-slashes-directly-preceded-by-unquoted-attribute-values

futtta commented 1 year ago

I've always considered this low priority, but perhaps it's time to fix this indeed. But aren't there similar /> in e.g. autoptimizeScripts.php and autoptimizeImages.php ?

r23 commented 1 year ago

Thank you very much for the great plugin. It has sped up my blog considerably!

Unfortunately I can't say anything about the scripts autoptimizeScripts.php and autoptimizeImages.php. I probably don't use them in my blog.

Document checking completed. No errors or warnings to show. => https://validator.w3.org/nu/?doc=https%3A%2F%2Fblog.r23.de%2F3d-visualisierung%2Fwie-man-eine-leistungsfaehige-3d-visualisierungstrategie-entwickelt%2F

futtta commented 1 year ago

had a quick look, JS/ Images seem OK :)