[wp-trac] [WordPress Trac] #54625: Comments markup differs in trunk from the markup provided with the Gutenberg plugin active

WordPress Trac noreply at wordpress.org
Wed Dec 15 01:10:12 UTC 2021


#54625: Comments markup differs in trunk from the markup provided with the
Gutenberg plugin active
--------------------------+---------------------
 Reporter:  kjellr        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.9
Component:  Editor        |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------

Comment (by noisysocks):

 It looks like this came as a result of
 https://core.trac.wordpress.org/ticket/54597 making it so that in Core we
 opt in to HTML5 markup for `comment-form`, `comment-list`, `style` and
 `script`:

 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 includes/theme.php#L4179

 In Gutenberg we only opt in to HTML5 markup for `style` and `script`:

 https://github.com/WordPress/gutenberg/blob/7762302a2aacd1da09d7c848ce009598aca21ef9/lib/compat/wordpress-5.9
 /default-theme-supports.php#L12-L18

 I can make it so that the behaviours in Core and Gutenberg match, but
 which is correct, @kjellr? We should aim to use HTML5 markup, no?

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


More information about the wp-trac mailing list