title: "modal" boolean attribute
date: 2023-05-06T06:10:30.702Z
submitter: Jiyoung Joung
number: 6455ef56496486005d09cc9f
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:
- title:
url:
type: [ article || explainer || draft || spec || note || discussion ]
It is for the consistence of show() and showModal(). When I declare the modal dialog, you just type:
<dialog modal="modal">
<!--something content...-->
</dialog>
or when you open the dialog by javascript, you just type:
const dialog = document.querySelector('dialog');
dialog.show( { modal: true } )
It would be nicer to declare "modal boolean attribute" because we will be able to open dialog by only one function(show()).
If posted, this will appear at https://webwewant.fyi/wants/6455ef56496486005d09cc9f/
title: "modal" boolean attribute
date: 2023-05-06T06:10:30.702Z
submitter: Jiyoung Joung
number: 6455ef56496486005d09cc9f
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:
url:
type: [ article || explainer || draft || spec || note || discussion ]
It is for the consistence of
show()andshowModal(). When I declare the modal dialog, you just type:or when you open the dialog by javascript, you just type:
It would be nicer to declare "modal boolean attribute" because we will be able to open dialog by only one function(
show()).If posted, this will appear at https://webwewant.fyi/wants/6455ef56496486005d09cc9f/