[wp-trac] [WordPress Trac] #39763: W3C Error with get_calendar()

WordPress Trac noreply at wordpress.org
Thu Jan 23 03:32:19 UTC 2020


#39763: W3C Error with get_calendar()
--------------------------------------+--------------------------------
 Reporter:  Harry Milatz              |       Owner:  isabel_brison
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.4
Component:  General                   |     Version:  4.7.2
 Severity:  minor                     |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  ui, accessibility
--------------------------------------+--------------------------------
Changes (by isabel_brison):

 * keywords:  good-first-bug needs-patch => good-first-bug has-patch
 * focuses:  accessibility => ui, accessibility


Comment:

 I have added a patch that removes the <tfoot> altogether, and moves the
 "previous" and "next" month links into a <nav> that sits below the table.
 I couldn't think of a good way to semantically link this nav to the table,
 but they both sit under the same widget heading. Would be good to have
 some more accessibility feedback on this.

 In terms of theme styling, this solution may look slightly broken with
 existing themes if they were depending on <tfoot> borders (e.g. Twenty
 Fourteen) or if they add generic styles to the <table> element (e.g Twenty
 Nineteen with the font family). Otherwise, for layout themes generally
 depend on the table layout itself, and that will be easy enough to
 replicate with a bit of CSS.

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


More information about the wp-trac mailing list