Boosted by slightlyoff@toot.cafe ("Alex Russell"):
davatron5000 ("Dave Rupert") wrote:
A div is not a button. Yes, I agree. In fact, what my team has learned is that even if you go thru allllll the effort to make a custom-element (a spicy div) exactly like a button there’s still out-of-the-box browser behaviors that are impossible to replicate and they also keep evolving (popover/invokers). This API fixes that gap, updates with the browser, and should fix some of referencetarget-like issues (eg proxy attributes).