• I recently updated to Gutenberg 10.5.2 and I noticed that my posts now contain a <script> element inside the page’s <body> with styles pertaining to the “Skip to content” link. Thus when the post is submitted to W3.org’s HTML Validator, it reports the following error:

    Error: Element style not allowed as child of element body in this context. (Suppressing further errors from this subtree.)

    From line 355, column 3; to line 355, column 31

    /div>??? <style id=”skip-link-styles”>? .sk

    Contexts in which element style may be used:
    Where metadata content is expected.
    In a noscript element that is a child of a head element.
    Content model for element body:
    Flow content.

    Can this style element be moved to the head?

    • This topic was modified 3 years, 10 months ago by thompcha.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘element for Skip to content produces HTML validation error’ is closed to new replies.