problems
Continuing from this GitHub issue, the current dialog’s APIs seem a bit ugly. if the spec can be slightly fixed, it makes more pretty and consistent.
proposals
when opening modal without showModal(), you just type this:
<dialog type="modal" open>
<!--something content...-->
</dialog>
or with show() method, you just type this:
show( { type : "modal" } )