[wp-trac] [WordPress Trac] #57834: Every Group block translates to a <main> HTML tag

WordPress Trac noreply at wordpress.org
Mon Mar 6 06:54:52 UTC 2023


#57834: Every Group block translates to a <main> HTML tag
-------------------------------------------------+-------------------------
 Reporter:  asafm7                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing-info needs-testing     |     Focuses:
  reporter-feedback                              |
-------------------------------------------------+-------------------------

Comment (by poena):

 The HTML tag in the group block defaults to div and can be changed to a
 list of selected tags, main is one of them.


 By copying an existing group which already uses the main tag
 By duplicating an existing group which already uses the main tag
 By adding a block pattern which uses a main tag
 By adding a reusable block which uses a main tag
 By inserting a custom block from a third party plugin, that uses the main
 tag for the group internally
 By adding a group block and manually changing the HTML tag in the Advanced
 panel in the block settings sidebar
 By manually editing the tagName block attribute in the block editor's code
 editing mode.

 The code responsible for switching the tag:
 https://github.com/WordPress/gutenberg/blob/trunk/packages/block-
 library/src/group/edit.js

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


More information about the wp-trac mailing list