Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



The Popover API only makes non-modal popups.


Yes, 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.


But it's still a non-modal dialog, which doesn't match the JavaScript functionality.


Apologies, 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.


Funny, when reading this sentence, it felt like an LLM that was hallucinating and apologizes when told.


I wouldn’t expect an LLM to use a phrase like “for some reason I was convinced,”




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: