Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#55375 closed defect (bug) (reported-upstream)

Element <style> not allowed as child of element <body> in this context.

Reported by: klemart3d's profile Klemart3D Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9
Component: Script Loader Keywords:
Focuses: Cc:


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

May be related with #55148 and #53494

Change History (2)

#1 @costdev
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed
  • Version changed from 5.9.2 to 5.9

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.

#2 @audrasjb
2 years ago

#55679 was marked as a duplicate.

Note: See TracTickets for help on using tickets.