Skip to content

Invalid markup in Classic editor results in no content in editor when Gutenberg activated #12275

Open

Description

Describe the bug
If there is invalid markup such as a missing " in the Classic editor, when activating the Gutenberg plugin or updating to RC1, the result is that content after that error is removed from the post.

To Reproduce
Steps to reproduce the behavior:

  1. Create a post containing invalid HTML in the Classic Editor text tab. See example below.
  2. Activate Gutenberg 4.5.1 or WordPress 5.0 RC1
  3. Return to the post edit screen.
  4. Only the first paragraph of content is visible even in code editor.
<p>This is an example of a WordPress post.</p>
<p class="intro>This is an example of a WordPress post.</p>
<p>This is an example of a WordPress post.</p>

Expected behavior
All content will be visible so you can correct the error. As of now, it seems to simply delete everything after the invalid portion.

Desktop

OS: Windows/OSX
Browser: Chrome/FF 
Version: Latest

Additional context
Gutenberg 4.5.1 or WordPress 5.0 RC1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Block] ClassicAffects the Classic Editor BlockAffects the Classic Editor Block[Feature] Convert to BlocksInternally: "raw handler"Internally: "raw handler"[Feature] ParsingRelated to efforts to improving the parsing of a string of data and converting it into a different fRelated to efforts to improving the parsing of a string of data and converting it into a different f[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions