logoalt Hacker News

account42yesterday at 12:08 PM1 replyview on HN

It doesn't need to be a modal and can (should!) fall back to a simple <a> without JS. It also didn't work even with JS for me.


Replies

androsyesterday at 1:30 PM

First, you're assuming my entire website should work without JavaScript. You don't understand my design reasoning, nor have you asked about the underlying cause.

Second, for a modal, I should use a `<dialog>` that opens via a `<button>`, which it already does. JavaScript does the magic. Not a `<a>` as you suggested.

Finally, if it's a bug, which I find very strange because it's a very simple piece of code and no one has reported it, you're not posting it in the right place. An email or the contact form would have been more appropriate.