Make WordPress Core

Opened 2 years ago

Closed 8 months ago

Last modified 8 months ago

#19543 closed defect (bug) (fixed)

Broken formatting when using HTML5 <section> element

Reported by: exz Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.3
Component: Formatting Keywords:
Focuses: Cc:


When using <section> HTML5 element, the resulting markup is invalid because some paragraphs isn't closed properly.

Reproduced with WP 3.3, TwentyEleven theme and no plugins.

Example markup attached to this ticket. Paste into html view of the WYSIWYG editor and publish. Resulting markup also attached.

Attachments (3)

markup.html (191 bytes) - added by exz 2 years ago.
markup to reproduce the bug
output.html (231 bytes) - added by exz 2 years ago.
resulting output
19543.diff (882 bytes) - added by solarissmoke 2 years ago.

Download all attachments as: .zip

Change History (10)

exz2 years ago

markup to reproduce the bug

exz2 years ago

resulting output

solarissmoke2 years ago

comment:1 solarissmoke2 years ago

  • Component changed from Editor to Formatting
  • Keywords dev-feedback added

19543.diff illustrates where the issue is.

However, the same applies to pretty much all the other block-level elements which can contain flow content - e.g., header, footer, nav etc - where an unclosed paragraph at the end needs to be closed. It's not clear to me why currently only div, form and address get this treatment? The original changeset r4565 doesn't say much either.

comment:2 SergeyBiryukov2 years ago

  • Keywords has-patch needs-unit-tests added

comment:3 MikeHansenMe20 months ago

Here is a list of elements that may need addressed, some are not supported yet.

comment:4 MikeHansenMe19 months ago

See ticket #21173, this will likely fix this problem.

comment:5 MikeHansenMe19 months ago

The problem does not seem to be resolved with the fix of #21173 as I thought it may. Problem still exists exactly as described.

comment:6 sabreuse8 months ago

  • Keywords dev-feedback has-patch needs-unit-tests removed
  • Milestone Awaiting Review deleted
  • Resolution set to fixed
  • Status changed from new to closed

This is no longer happening. I assume it was fixed by the TinyMCE HTML5 overhaul in [23153]

comment:7 nacin8 months ago

  • Milestone set to 3.5
Note: See TracTickets for help on using tickets.