Deduplicate generated block class attrs#575
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
classNameattrs at the serializer boundary to strip generated Gutenberg classes and duplicate class tokens before comment attrs and saved HTML are produced.hero-taglinewhile letting block support emit generated classes likehas-text-colorexactly once.has-text-colorparagraph mismatch through both full HTML transform and directBlockFactoryusage.Evidence
55267331-ad9c-4a71-9a41-be7cb9254c95.2-onepager-coffee,3-artist-music(2 blocks), and31-personal-cv-academic; snippets showedcore/paragraphclass mismatches likehas-text-color has-text-color hero-tagline.2-onepager-coffee,3-artist-music,31-personal-cv-academic, and15-saasall reportwp_block_validity=pass, 0 findings, 0 duplicatehas-text-color, and 0core/htmlfallback blocks.composer test:canonicalcomposer test(includes 229 PHP transformer parity fixtures)AI assistance