Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 22 months 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:

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

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
22 months ago

#55679 was marked as a duplicate.

Note: See TracTickets for help on using tickets.