<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 i wish we could mixin traits. Some Oses allow you to do that in practice.
@bkardell Yeah, that would be sometimes useful. Also another way for people to screw up. 😂
@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.
@yatil, that this happens in professional contexts *that refuse to hire juniors* 🫠