Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#46001 closed defect (bug) (wontfix)

when an article edited in html starts with <section> tag, content is not rendered

Reported by: volapuk Owned by:
Priority: normal Milestone:
Component: Editor Version: 5.0.3
Severity: normal Keywords: needs-patch
Cc: Focuses:

Description

I use to edit my articles in html, the article is divided in sections and subsections using <section> html5 tag, id an article starts with that tag content is not rendered in web, as a workarround I have to put an space char (&nbsp;) and then the content is correctly rendered.
This happens with all versions of wordpress.

Change History (1)

#1 @noisysocks
6 years ago

  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → closed

The code editor is only designed for editing basic post markup (<p>, <strong>, <a>, etc.) in a way that's conducive to writing a post. That's why, for example, wpautop replaces double new lines with paragraph tags by default.

You might find that disabling wp_kses and wpautop is what would best suit your needs.

Note: See TracTickets for help on using tickets.