[wp-trac] [WordPress Trac] #48196: The Code Editor generates tag soup with empty paragraphs in td elements

WordPress Trac noreply at wordpress.org
Tue Dec 12 15:02:56 UTC 2023


#48196: The Code Editor generates tag soup with empty paragraphs in td elements
-------------------------------+------------------------------
 Reporter:  vinc17             |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Editor             |     Version:  5.2.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by vinc17):

 I forgot to reply... As the bug is still present with WordPress 6.4.2:

 The code in the Code editor starts with
 {{{
 <table class="valign-middle">
 <tbody>
 <tr>
 <td><a href="wp-content/uploads/2014/09/aecf_screen_1.0.jpg"><img src="wp-
 content/uploads/2014/09/aecf_screen_1.0-228x300.jpg" alt="aecf"
 class="alignnone size-medium wp-image-868" width="153"
 height="230"/></a></td>
 <td><strong>Algorithmes Efficaces en Calcul Formel</strong>

 Alin Bostan, Frédéric Chyzak, Marc Giusti, Romain Lebreton, Grégoire
 Lecerf, Bruno Salvy, Éric Schost.

 Auto-édité. Distribué par Amazon avec une version couleur gratuite en
 ligne, 2017.
 ISBN : 979-10-699-0947-2

 Pour plus d'informations, voir <a href="https://hal.archives-
 ouvertes.fr/AECF/">ici</a>.</td>
 </tr>
 }}}
 and in the generated code, I can see
 {{{
 <table class="valign-middle">
 <tbody>
 <tr>
 <td><a href="wp-content/uploads/2014/09/aecf_screen_1.0.jpg"><img
 decoding="async" src="wp-
 content/uploads/2014/09/aecf_screen_1.0-228x300.jpg" alt="aecf"
 class="alignnone size-medium wp-image-868" width="153"
 height="230"/></a></td>
 <td><strong>Algorithmes Efficaces en Calcul Formel</strong></p>
 <p>Alin Bostan, Frédéric Chyzak, Marc Giusti, Romain Lebreton, Grégoire
 Lecerf, Bruno Salvy, Éric Schost.</p>
 <p>Auto-édité. Distribué par Amazon avec une version couleur gratuite en
 ligne, 2017.<br />
 ISBN : 979-10-699-0947-2</p>
 <p>Pour plus d’informations, voir <a href="https://hal.archives-
 ouvertes.fr/AECF/">ici</a>.</td>
 </tr>
 }}}
 So two tags are missing:
 - a `<p>` between `<td>` and `<strong>` (to match the closing `</p>` at
 the end of the line);
 - a `</p>` between `ici</a>.` and `</td>` (to match the opening `<p>` at
 the beginning of the line).

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


More information about the wp-trac mailing list