內容簡介
Manly Fix 外掛提供可配置的 HTML 修正功能,旨在改善 WordPress 和 WooCommerce 的頁面輸出。使用者可透過設定選項啟用或禁用各項修正,以確保網站的 HTML5 輸出符合標準。
【主要功能】
• 移除尾隨斜線
• 移除內建大小 CSS
• 移除冗餘 aria-hidden
• 將路由樣式移至 <head>
• 移除無效的 prefetch 連結屬性
• 修正 WooCommerce 迷你購物車角色
外掛標籤
開發者團隊
原文外掛簡介
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
Remove trailing slashes – Removes XHTML-style trailing slashes (/>) from void elements (, , , , etc.) for clean HTML5 output.
Validator: “Info: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.”
Remove intrinsic size CSS – Removes the contain-intrinsic-size CSS rule injected by WordPress for auto-sized images.
Validator: “CSS: contain-intrinsic-size: Property contain-intrinsic-size doesn’t exist.”
Remove redundant aria-hidden – Removes aria-hidden="true" from elements that already carry the hidden attribute.
Validator: “Attribute aria-hidden is unnecessary for elements that have attribute hidden.”
Move router style to
– Moves the WordPress Interactivity Router animations inline