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

WordPress Trac noreply at wordpress.org
Wed Mar 1 11:26:59 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:                |     Focuses:
--------------------------+------------------------------

Comment (by poena):

 Hi!

 Maybe I misunderstood the report?, but I don't think this is a bug.

 A group block can be set to use the {{{<main>}}} element, but new groups
 should be using a
 {{{<div>}}} by default when they are inserted.
 This is intentional because theme developers and site owners need to be
 able to use the main element for groups as part of their block themes and
 new page templates -to create the proper structure.
 The option to change the group from a div to a main, header, section,
 footer etc, is in the Advanced panel in the block settings sidebar. It is
 placed there intentionally to reduce the risk that users adds more than
 one main element.

 ''You may be interested in this issue, where I am suggesting that a
 warning is added to the editor if there is more than one main element:''
 https://github.com/WordPress/gutenberg/issues/35354

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


More information about the wp-trac mailing list