[wp-trac] [WordPress Trac] #55375: Element <style> not allowed as child of element <body> in this context.
WordPress Trac
noreply at wordpress.org
Fri Mar 11 13:16:14 UTC 2022
#55375: Element <style> not allowed as child of element <body> in this context.
---------------------------+-----------------------------
Reporter: Klemart3D | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 5.9.2
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
The last WP version (v5.9.2) not passing the W3C validator, following
error appears: "Element style not allowed as child of element body in this
context. (Suppressing further errors from this subtree.)"
It comes from <style> tags for `.wp-container` blocks loaded in the footer
of the pages.
You can see this error on front of https://wordpress.org:
See: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwordpress.org%2F
May be related with #55148 and #53494
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55375>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list