Context: http://updates.html5rocks.com/2013/09/dialog-element-Modals-made-easy
show
andclose
are not opposites. It should beopen, close
orshow, hide
.open close
is the obvious winner.- There is no declarative api, which is actually really simple:
<button controls="my-dialog">
Toggle Dialog
</button>
<dialog id="my-dialog" open>
Hello
<button controls="my-dialog">close</button>
</dialog>
Using controls
to mimic WAI ARIA aria-controls
attribute. Could also use for
.
+1!
Have you lurked on the various mailing lists (WHATWG) to see what the deal is here?