It would be nice if inside a form they could be triggered by the enter key just like submitting. I sometimes need to open an “are you sure?” type of dialog before submitting a form and putting the actual submit button inside the dialog already works with the button form attribute.
I'm always glad to use less JS but I still think top-layer isn't quite ready for the mainstream and until it is not many people will embrace it.
My thoughts if you're interested, though I wrote it a while ago now.
dev.to/link2twenty/...
So now we're seeing "imperative-declarative" programming on the rise.
It could have been conceived the other way around (in a more "functional-declarative" way), like:
```html
<dialog openedby="btn1" closedby="btn2"></dialog>
<button id="btn1">open</button>
<button id="btn2">close</button>
```