[wp-trac] [WordPress Trac] #27350: Invalid HTML Output

WordPress Trac noreply at wordpress.org
Tue Jul 2 01:30:24 UTC 2019


#27350: Invalid HTML Output
----------------------------------------------+---------------------
 Reporter:  miqrogroove                       |       Owner:  pento
     Type:  defect (bug)                      |      Status:  closed
 Priority:  normal                            |   Milestone:  5.3
Component:  Formatting                        |     Version:  3.8
 Severity:  normal                            |  Resolution:  fixed
 Keywords:  wpautop has-patch has-unit-tests  |     Focuses:
----------------------------------------------+---------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45585" 45585]:
 {{{
 #!CommitTicketReference repository="" revision="45585"
 Clean up stray `<p>` tags added by `wpautop()` inside block level tags.

 `autop()` can sometimes get confused and not clean up stray `<p>` or
 `</p>` tags inside block level elements, which produces sub-optimal HTML.
 While browsers can generally handle it, there's no need to make things
 harder for them if we don't have to.

 Props pento, ayubi, pbearne, jond, azaozz, 1994rstefan, dionysous,
 MikeHansenMe, jorbin, miqrogroove, niallkennedy.
 Fixes #27350.
 }}}

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


More information about the wp-trac mailing list