[wp-trac] [WordPress Trac] #25646: figcaption should not be treated as a block by wpautop() (was: Paragraph and linebreak elements get added when using figure, a, img and figcaption)
WordPress Trac
noreply at wordpress.org
Fri Jan 17 08:03:28 UTC 2014
#25646: figcaption should not be treated as a block by wpautop()
--------------------------+--------------------
Reporter: laacz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Formatting | Version: 3.6.1
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Changes (by nacin):
* milestone: Awaiting Review => 3.9
Comment:
Thanks for the report, laacz. Looks like there are two distinct bugs here.
* The closing `</p>` looks exactly like #25785 (see also #849, #3007,
#3833, #4857).
* figcaption is being treated as a block-level element by wpautop(), and
you don't want it to be. figcaption is an interesting element — it must be
either the first or last child of figure. Otherwise, figure contains flow
content. Figcaption is neither block-like or flow-like in and of itself,
it's just an extension of figure. So we should not be treating it as
block-level, you are right.
I'm going to tweak the summary of this bug report slightly to reflect a
focus on the second bullet.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25646#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list