[wp-trac] [WordPress Trac] #59505: Fix HTML5 validation error for skip-link css on footer

WordPress Trac noreply at wordpress.org
Sun Jan 11 06:35:15 UTC 2026


#59505: Fix HTML5 validation error for skip-link css on footer
----------------------------------------------+--------------------------
 Reporter:  plugindevs                        |       Owner:  westonruter
     Type:  defect (bug)                      |      Status:  closed
 Priority:  normal                            |   Milestone:  6.4
Component:  Themes                            |     Version:  5.9
 Severity:  normal                            |  Resolution:  fixed
 Keywords:  has-patch has-screenshots commit  |     Focuses:  css
----------------------------------------------+--------------------------

Comment (by westonruter):

 In [changeset:"61469" 61469]:
 {{{
 #!CommitTicketReference repository="" revision="61469"
 Themes: Use `WP_HTML_Tag_Processor` to insert the block template skip link
 instead of JavaScript.

 * The skip link now works when JavaScript is turned off.
 * By removing the script, the amount of JavaScript sent to the client is
 reduced for a very marginal performance improvement.
 * A new `wp-block-template-skip-link` stylesheet is registered, with
 minification and `path` data for inlining.
 * The CSS for the skip link now has an RTL version generated, although it
 is not yet served when the styles are inlined. See #61625.
 * The `wp_enqueue_block_template_skip_link()` function now exclusively
 enqueues the stylesheet since the script is removed.
 * For backwards-compatibility, the skip link will continue to be omitted
 if `the_block_template_skip_link()` is unhooked from the `wp_footer`
 action or `wp_enqueue_block_template_skip_link()` is unhooked from
 `wp_enqueue_scripts`.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10676

 Follow-up to [56932], [51003].

 Props rutviksavsani, westonruter, dmsnell, whiteshadow01, Slieptsov.
 See #59505, #53176.
 Fixes #64361.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59505#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list