Opened 11 years ago
Closed 5 years ago
#27559 closed enhancement (duplicate)
Improve <figure> handling
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.9 |
Component: | Formatting | Keywords: | wpautop |
Focuses: | Cc: |
Description
Follow up to #25646.
We need to look at wpautop()
's handling of the <figure>
element and see if it's optimal. Currently a <br>
gets inserted when using a <figcaption>
inside a <figure>
.
Change History (3)
Note: See
TracTickets for help on using
tickets.
According to the MDN,
<figcaption>
is a block-level element so inserting a<br>
tag isn't strictly necessary.Ref: https://developer.mozilla.org/en/docs/Web/HTML/Block-level_elements