[wp-trac] [WordPress Trac] #47643: Problem with W3C Validation
WordPress Trac
noreply at wordpress.org
Wed Jul 3 06:30:41 UTC 2019
#47643: Problem with W3C Validation
--------------------------+-----------------------------
Reporter: peter120 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Dear support,
Had to create an account for this, so I did.
I like to ask if it would be possible to code out the script type warning
we get when running a W3C HTML test.
I have this with GeneratePress as with other themes and most creators ask
us to contact WordPress support and to let them know, as this might be
inside the core part of WP.
Here is some source I found that talks about this as well:
https://generatepress.com/forums/topic/problem-with-w3-validation/
His link shows a lot of errors that are not related to core I think but to
his theme.
However, most developers think that the following is related to core:
Warning: The type attribute for the style element is not needed and should
be omitted.
There seems to be a temporary solution and it does work in my testing
environment. The problem is that it suggest using PHP Buffering, and I
have no idea if this is hammering our page-load speed in a negative way:
https://wordpress.stackexchange.com/questions/287830/remove-type-
attribute-from-script-and-style-tags-added-by-wordpress/287833#287833
Thanks for making WordPress. I cannot live without it and am thankful
everyday that this has been created!
Hope this info helps.
Regards.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47643>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list