Gutenberg: Investigate improvements when Block Is Invalidated #37230
Labels
[Goal] Gutenberg
Working towards full integration with Gutenberg
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Milestone
Please take a few days to investigate what next steps make sense. We can create new issues/refine the summary here to reflect what we find.
Suggested courses of action:
Context
When a block parses HTML markup, it also tries to validate the data by re-serializing and comparing the result. Unfortunately blocks currently compare with an extremely strict mode. Even a small class addition for change for completely equivalent markup/styling, is enough to cause the following scary error:
Clicking on the primary action usually isn't what the user wants. It converts the previously nice to understand block into a plain HTML block:
The best action is usually "Attempt Block Recovery" or "Convert to Blocks"
Traditionally WP allows manipulation of content from a variety of filters/customizations, so this is a very easy case to fall into.
The text was updated successfully, but these errors were encountered: