5 ms·
Which is strange because you absolutely can open dialogs without javascript with the popover attribute https://developer.mozilla.org/en-US/docs/Web/API/Popover
by worble 2y ago
Which is strange because you absolutely can open dialogs without javascript with the popover attribute
https://developer.mozilla.org/en-US/docs/Web/API/Popover_API#concepts_and_usage https://developer.mozilla.org/en-US/docs/Web/API/Popover_API...
- robertoandred 2y agoThe Popover API only makes non-modal popups.
- worble 2y agoYes, but in the article I posted: > Popovers created using the Popover API are always non-modal. If you want to create a modal popover, a <dialog> element is the right way to go. > You can turn a <dialog> element into a popover (<dialog popover> is perfectly valid) if you want to combine popover control with dialog semantics.
- robertoandred 2y agoBut it's still a non-modal dialog, which doesn't match the JavaScript functionality.
- worble 2y agoApologies, for some reason I was convinced you could get a proper modal using the popover api but you're right, it's not a proper modal.
- rat9988 2y agoFunny, when reading this sentence, it felt like an LLM that was hallucinating and apologizes when told.
- mock-possum 2y agoI wouldn’t expect an LLM to use a phrase like “for some reason I was convinced,”