#3362 closed defect (bug) (duplicate)
Missing <p> tag from <blockquote> (as well as extra <br /> sometimes) invalidates xhtml
Reported by: | upekshapriya | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0.5 |
Component: | General | Keywords: | needs-patch needs-unit-tests |
Focuses: | Cc: |
Description
Wordpress 2.0.5 always seems to miss off the opening <p> tag inside a <blockquote> (and if it is embedded in text adds a <br /> tag before the <blockquote>) which invalidates XHTML
The following text (with a break before the blockquote):
Text before blockquote that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on: <br /> <blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </blockquote> Text after block quote that doesn't go on and on.<br />
becomes:
<p> Text before blockquote that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on: <br /> <br />
<blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </p></blockquote>
<p> Text after block quote that doesn’t go on and on. </p>
With a blockquote at the beginning (and no break character before):
<blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </blockquote> Text after block quote that doesn't go on and on. <br /> <br /> Just separated by some break characters
becomes:
<blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </p></blockquote>
<p> Text after block quote that doesn’t go on and on. </p>
<p> Just separated by some break characters
</p>
Text before blockquote (with a break before the quote):
Text before blockquote that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on: <br /> <blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </blockquote>
becomes:
<p> Text before blockquote that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on: <br /> <br />
<blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </p></blockquote>
Blockquote at the end (without a break before the quote):
Text before blockquote that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on: <blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </blockquote>
becomes:
<p> Text before blockquote that goes on and on and on and on and on and on and on and on and on and on and on and on and on and on and on:<br />
<blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </p></blockquote>
Blockquote on its own:
<blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </blockquote>
becomes
<blockquote> "Text withing blockquote that also goes on and on and on and on and on and on and on and on and on." </p></blockquote>
Change History (10)
#5
@
17 years ago
- Keywords early autop needs-patch needs-unit-test added
- Milestone changed from 2.5 to 2.6
My guess is this is autop at work.
We have a number of autop and other formatting related tickets around.
I am loath to change something like this late in the release cycle and without a large corpus of test cases to validate changes don't break other behaviour.
Moving to 2.6
Problem Still exists in trunk.
Input:
Output:
(Works OK).
Next:
Input:
Output:
Both are identical inputs, Except the 1st includes a \n between <br> and <blockquote>
However, Blockquote on its own: example given seems to work OK now.