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

WordPress Trac noreply at wordpress.org
Tue Mar 7 13:19:25 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 asafm7):

 Thanks, @poena.

 I don't think I've done any of those, not intentionally at least.

 But I was unaware of the option to choose the HTML tag in the advanced
 section. It means that if the issue arises again, I can just manually
 change the HTML tag type.

 Thanks for your reply.

 Asaf

 Replying to [comment:12 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:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list