News for hackers. Stuff that matters.
Re:Ask HN: How do we get Google and Twitter to use href attr... by slater on Thursday September 09, 2021 @10:26PM (#28477093)
They have no reason to use href attributes. So they won't.
Re:Ask HN: How do we get Google and Twitter to use href attr... by beaugunderson on Friday September 10, 2021 @01:37AM (#28478166)
They do talk quite a bit about supporting accessibility on the web and in Chrome so they already have an internal reason to use href attributes if there's someone willing to make the case to whoever the decision maker is for Maps.
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.