<button aria-label="Heading Text”><h2 class="h6”>Heading Text</h2></button>

*sigh*

I understand why it happens, I don’t understand why it’s my job to clean up after “professional” developers.

@yatil what am I looking at and why “H2” within a “button”?
@dahukanna I have long stopped to try to understand why. Probably because the bold text reminds the developer of a heading in the context?
@yatil @dahukanna I have seen this pattern of wrapping button content in non-sensical tags in AI-generated code.