#55375 closed defect (bug) (reported-upstream)
Element <style> not allowed as child of element <body> in this context.
Reported by: | Klemart3D | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.9 |
Component: | Script Loader | Keywords: | |
Focuses: | Cc: |
Description
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
Change History (2)
Note: See
TracTickets for help on using
tickets.
Hi @Klemart3D, welcome to Trac!
This has been reported upstream in GB 38917. Let's continue the discussion there.
I'll close this ticket so that discussion is focused over on GB 38917.