<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Plz add a filter to HTMLminify

[ad_1]

Replies: 3

Hi Frank,

since a few days the Html Checker change the self-closing tag syntax in text/html documents, and now you get a lot of warnings.

Example:

Warning: Self-closing tag syntax in text/html documents is widely discouraged; it’s unnecessary and interacts badly with other HTML features (e.g., unquoted attribute values). If you’re using a tool that injects self-closing tag syntax into all void elements, without any option to prevent it from doing so, then consider switching to a different tool.

From line 1, column 1298; to line 1, column 1462

<link media="all" href="https://cdn.***.com/wp-content/cache/autoptimize/css/autoptimize_47a1061afeaae4a12d23f68811834fd5.css" rel="stylesheet" />

So, it is possible to include in your next plugin update a small codeline like:

$this->content = str_replace( '/>', '>', $this->content );

.. but we love clean and valid HTML Code 🙂

THX 🙂

  • This topic was modified 41 minutes ago by vollcom.
  • This topic was modified 40 minutes ago by vollcom.
  • This topic was modified 40 minutes ago by vollcom.
  • This topic was modified 37 minutes ago by vollcom.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer