Ticket #3833 (reopened defect)

Opened 2 years ago

Last modified 10 months ago

Extra </p> inside blockquote

Reported by: audwan Assigned to: anonymous
Priority: normal Milestone: 2.9
Component: Administration Version: 2.3.1
Severity: normal Keywords: blockquote invalid list paragraph tags wpautop autop
Cc:

Description (Last modified by foolswisdom)

When using blockquote </p> is inserted directly in front of </blockquote>, making the code invalid XHTML.

Example:

<blockquote>This is a blockquote</blockquote>

Gives the following result:

<blockquote>This is a blockquote</p></blockquote>

Seems like this forum thread adresses the same issue in the support forum.

Change History

03/28/07 02:26:02 changed by foolswisdom

  • milestone changed from 2.1.3 to 2.2.

03/29/07 03:24:08 changed by rob1n

  • status changed from new to closed.
  • resolution set to worksforme.
  • milestone deleted.

Using <blockquote> inside <li> is invalid. Use <q> instead.

For me, <blockquote>Hello, world. Wonder what this will do.</blockquote> puts <p>...</p> inside the <blockquote> fine.

This is with r5142. Closing as worksforme.

10/31/07 20:32:49 changed by Goingthewongway

  • status changed from closed to reopened.
  • version changed from 2.1 to 2.3.1.
  • resolution deleted.

On version 2.3.1 this is still an issue.

For example, a post with only <blockquote>some quote</blockquote> will result in <blockquote>some quote</p></blockquote>, which is invalid XHTML.

This seems to me to be a result of:

1. formatting.php:78 $pee = str_replace('</blockquote></p>', '</p></blockquote>', $pee); 2. not having/not adding an opening "<p>" tag at the beginning of the post (even though it does get added for other all-text entries)

10/31/07 20:49:47 changed by foolswisdom

  • keywords changed from blockquote invalid list paragraph tags to blockquote invalid list paragraph tags wpautop autop.
  • priority changed from low to normal.
  • description changed.

ENV: WP trunk r6301

Confirmed bug exists as described.

The bug won't reproduce if there are no blank lines before the blockquotes, or if there is a paragraph before the blockquote. That likely explains it working for rob1n .

Repro having a block quote by the only text, inserted using visual editor.

Removed that part about blockquote in a list from description.

10/31/07 20:49:55 changed by foolswisdom

  • milestone set to 2.4.