News for hackers. Stuff that matters.
Re:Ask HN: How do we get Google and Twitter to use href attr... by epse on Friday September 10, 2021 @12:55AM (#28477950)
But do they have a reason to use onclick handlers? Because that seems wildly overcomplicated to me
Re:Ask HN: How do we get Google and Twitter to use href attr... by beaugunderson on Friday September 10, 2021 @01:36AM (#28478159)
My guess is that it's a framework issue (whatever Google framework they're using internally makes this the easiest approach) and no one has complained loudly enough for it to reach the person who can change it.
Re:Ask HN: How do we get Google and Twitter to use href attr... by raihansaputra on Friday September 10, 2021 @03:42AM (#28478777)
Yeah I guess this is the reason. UI Frameworks may render <Button href=/> as a button with on:click instead of a button-styled link.