Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Block validation triggers when reverting a class change #8131
Describe the bug
If you add a new class name to a block with an existing class and then remove that class it triggers a validation warning even though the content is correct.
It saves the block to compare the difference and produces:
Note that the saved block also (incorrectly?) contains the new class. As the HTML is the same no warning is shown. Although this may be a desirable outcome it seems the result of an accident, and may be the source of the problem.
When you then remove the class the
However the saved block content is:
And so it incorrectly triggers an invalid content warning.
I’m not quite sure what is supposed to happen, and I haven’t tried it with other attributes. I’m investigating further as part of #7604 so will report here more findings.