Skip to content

<dialog> "modal" boolean attribute #621

@WebWeWantBot

Description

@WebWeWantBot

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions