Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#48038 closed defect (bug) (duplicate)

WordPress Not Producing Valide HTML - W3C Validation

Reported by: pietergerrits's profile pietergerrits Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.2.3
Component: Script Loader Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Hi Devs, I did search the bug tracker and found more tickets that were made that have the same errors. I will list these below.

The problem is that every theme that is active and checked for valid HTML is still giving notices. I really like to not use any tricks like the other person did to buffer_output every page as this might produce some lag in speed and in rendering each page.

You only need <HTML Tag Id="The_data"> I think... All the HTML tags that have a description like CSS or <type attribute> for the style element (specially inline styles) should be removed from header.php or any php file that is outputting this code in the lines in HTML source.

This was the tip I got from someone that has done some programming work at W3C.

Maybe this will be fixed in the next WP Version. I still like to bring this to your attention.

I found this having the same issue: #47643

Thanks for taking a look at it.

Have a good day!

Change History (1)

#1 @SergeyBiryukov
6 years ago

  • Description modified (diff)
  • Keywords needs-testing needs-patch removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @pietergerrits, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #42804.

Note: See TracTickets for help on using tickets.