[wp-trac] [WordPress Trac] #47066: Twenty Nineteen: The main element must not appear as a descendant of the section element.

WordPress Trac noreply at wordpress.org
Wed Sep 4 16:57:28 UTC 2019


#47066: Twenty Nineteen: The main element must not appear as a descendant of the
section element.
-------------------------------------+-------------------------------------
 Reporter:  albertomake              |       Owner:  audrasjb
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  5.3
Component:  Bundled Theme            |     Version:  5.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-dev-     |     Focuses:  accessibility,
  note                               |  template
-------------------------------------+-------------------------------------

Comment (by earnjam):

 Just saw this and wanted to add a few comments to the ticket.

 I recognize that this is invalid markup. It's unfortunate that we shipped
 it this way.

 I did some quick searching for Twenty Nineteen child themes on GitHub to
 see if I could find any instances that would be affected by this. I didn't
 see any in the first couple of pages of results.

 However, I suspect that the most likely situation where a
 `section#primary` or `section.content-area` would be used would be in
 custom CSS in the admin. The reason I think that is that it's not the
 ideal way to target those elements, so it's likely going to show up in
 small tweaks done by people who may not be well versed in CSS.
 Unfortunately there is not going to be an easy way to know the extent of
 that usage.

 The people who do that are also almost never going to read a dev note on
 the make blog. So we just need to understand that we're likely going to
 break some people's sites without warning.

 I know that since it's technically invalid markup, it could affect
 assistive technologies. Do we have any documented examples of them not
 functioning properly because of this or is it just theoretical?

 It's probably the right choice, but just think we'd have a bit more
 acknowledgement and discussion of the risks first.

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


More information about the wp-trac mailing list