You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I disagree to add a new element to HTML as <popup> because as a semantic view, the popup is just type of a dialog and doesn't introduce new behaviors! I think we just need a new attribute as type= with these values [modal, menu, alert] in <dialog>
Remove the showModal() method due to the type of dialog must declare as type attribute!
New JS method as toggle() to toggle the dialog open||close state! open if it is in a close state and close if it is in an open state!
New attribute as onBackdropClick that gets a function name that if type=modal set, the application (usually a browser) will call that function when the user interacts with outside of dialog! e.g. onBackdropClick="this.toggle" that toggle dialog open state!. The name of the attribute is discussable!
As discuss Have some way of opening <dialog> elements without JavaScript #3567 and accessibility dialog must always be controlled by an HTML element like a to open||close it not just by javascript, I think we need another attribute like "control-by" just like aria-owns or aria-controls for the dialog element. I'm not sure about this one that needs more discussion due to dialog can control by more than one element like an open button outside of dialog and a close button inside of dialog!
The text was updated successfully, but these errors were encountered:
As discussed here w3c/html#860 and here w3c/html#1667 and to improve this proposal #5802 (comment) I suggest adding below to the dialog standard:
<popup>
because as a semantic view, the popup is just type of a dialog and doesn't introduce new behaviors! I think we just need a new attribute astype=
with these values[modal, menu, alert]
in<dialog>
showModal()
method due to the type of dialog must declare astype
attribute!toggle()
to toggle the dialog open||close state! open if it is in a close state and close if it is in an open state!onBackdropClick
that gets a function name that iftype=modal
set, the application (usually a browser) will call that function when the user interacts with outside of dialog! e.g.onBackdropClick="this.toggle"
that toggle dialog open state!. The name of the attribute is discussable!<dialog>
elements without JavaScript #3567 and accessibility dialog must always be controlled by an HTML element like a to open||close it not just by javascript, I think we need another attribute like "control-by" just like aria-owns or aria-controls for the dialog element. I'm not sure about this one that needs more discussion due to dialog can control by more than one element like an open button outside of dialog and a close button inside of dialog!The text was updated successfully, but these errors were encountered: