Opened 13 years ago
Closed 13 years ago
#20381 closed defect (bug) (fixed)
TinyMCE tries to wrap some HTML5 block elements in <p>
Reported by: | azaozz | Owned by: | azaozz |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
As the title. There is a built-in list of all blocks from XHTML 1.0 and some from HTML 5.0. As HTML 5.0 doesn't have the same clear separation block/inline as earlier versions, that list should preferably include tags that should not be wrapped in <p>.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Currently this results in strange interaction with wpautop (which "knows" about these tags) and insertion of empty <p> tags on every switch of the editor mode Visual->HTML->Visual.