About this plugin
Applies configurable HTML fixes to WordPress and WooCommerce page output. Each fix can be individually enabled or disabled via Settings → Manly Fix.
WordPress & HTML Fixes
-
) for clean HTML5 output.
”
-
Remove intrinsic size CSS – Removes the contain-intrinsic-size CSS rule injected by WordPress for auto-sized images.
”
-
Remove redundant aria-hidden – Removes aria-hidden="true" from elements that already carry the hidden attribute.
”
-
Move router style to <head> – Moves the WordPress Interactivity Router animations inline <style> tag from <body> to <head>.
Validator: “Element style not allowed as child of element body in this context. )”
-
Remove invalid as from prefetch links – Removes the invalid as attribute from <link rel="prefetch"> elements emitted by WooCommerce.
”
-
Remove oEmbed discovery links – Removes the oEmbed discovery <link> elements from the page head.
-
Normalize Button block width CSS – Expands the core Button block width calc() formula in inline styles into an equivalent formula accepted by the HTML validator.
WooCommerce Fixes
These fixes are only shown when WooCommerce is active.
-
Mini-cart role=”dialog” – Adds missing role="dialog" to the WooCommerce mini-cart drawer div.
”
-
Add placeholder src to Interactivity API images – Adds a transparent placeholder src and an empty alt="" to <img> elements that use the WordPress Interactivity API but have no static attributes. Real values are set by JavaScript at runtime.
”
-
Correct gallery SVG attributes – Renames the invalid fillrule and cliprule attributes on product gallery SVG paths to fill-rule and clip-rule.
-
Remove redundant gallery dialog role – Removes the redundant role="dialog" from the product gallery <dialog> element.
-
Remove invalid current-page span label – Removes aria-label from the role-less current-page <span> in pagination.
Support
For issues, feature requests, or contributions, please contact Manly Electronics.