[wp-trac] [WordPress Trac] #48038: WordPress Not Producing Valide HTML - W3C Validation

WordPress Trac noreply at wordpress.org
Sat Sep 14 10:19:57 UTC 2019


#48038: WordPress Not Producing Valide HTML - W3C Validation
---------------------------+------------------------
 Reporter:  pietergerrits  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Script Loader  |     Version:  5.2.3
 Severity:  normal         |  Resolution:  duplicate
 Keywords:                 |     Focuses:
---------------------------+------------------------
Changes (by SergeyBiryukov):

 * keywords:  needs-testing needs-patch =>
 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Old description:

> 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:
> https://core.trac.wordpress.org/ticket/47643
>
> Thanks for taking a look at it.
>
> Have a good day!

New description:

 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!

--

Comment:

 Hi @pietergerrits, welcome to WordPress Trac!

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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48038#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list