is there any way to show a as modal without using the javascript api?‬

the new <dialog> element improves accessibility by keeping the keyboard focus inside the dialog

unfortunately it seems like it works only for the js api e.g.:

document.querySelector('dialog').showModal();

is there any way to get the same behavior only with html?

I tried the following but it didn’t seem to have any influence on the focus order:

<dialog open><input></dialog>