Live data from Hacker News

Popover API

developer.mozilla.org

31–40 of 166 posts

Re: Popover API

#31
post #25

As someone who does some (but not a lot of) web development, I guess the only thing I care about is: can I turn this off with uBlock Origin?

That’s like asking if you can turn off s. Not sure why you’d want to. It’s a perfectly reasonable component that doesn’t need to be abused for ads.

Re: Popover API

#32
in terms of accessibility, i imagine a universal standard for modal state management will be an improvement over the bespoke approach - closing when the user presses escape, focus handling, etc.

but i really wish popover=hint made it into the spec. would have been nice to get a native alternative to tippy.js

Re: Popover API

#33
post #18

Kinda funny that browsers have built-in pop-up blockers, but then create APIs like this. Yes I know the difference, but still. I’m old enough to remember the pop-up and pop-under wars of the late 90s and early 2000s. I guess we won that particular battle, but the war for our attention is far from over.

I think you're comparing apples with grapples. A popover is floating element that appears to display a contextual piece of information when required. What you're mentioning is something completely different.

> What you're mentioning is something completely different.

I think that is because the term 'Pop-up' has changed. It used to mean the opening of a new browser window, typically smaller than the host window and floating somewhere on top.

Now it means a modal form within the same window and dom.

Re: Popover API

#34
post #30

Kinda funny that browsers have built-in pop-up blockers, but then create APIs like this. Yes I know the difference, but still. I’m old enough to remember the pop-up and pop-under wars of the late 90s and early 2000s. I guess we won that particular battle, but the war for our attention is far from over.

I've seen exactly this comment somewhere on HN already. What's going on?

Perhaps they typed it into the wrong tab, deleted it and reposted it here?

Doesn't seem to be a re-peat according to https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

Re: Popover API

#35
post #27
post #25

As someone who does some (but not a lot of) web development, I guess the only thing I care about is: can I turn this off with uBlock Origin?

Nope. Not if the pop-up is first party.

Yes you can - uBlock Origin lets you apply CSS rules, and popovers can easily be hidden with the [popover] selector.

Re: Popover API

#36
post #25

As someone who does some (but not a lot of) web development, I guess the only thing I care about is: can I turn this off with uBlock Origin?

Seems like you could, since it has an attribute and a pseudo class to select on. document.querySelectorAll("[popover]:popover-open") should select all visible popovers. AFAIK uBlock uses regular CSS selectors.

Re: Popover API

#37

Kinda funny that browsers have built-in pop-up blockers, but then create APIs like this. Yes I know the difference, but still. I’m old enough to remember the pop-up and pop-under wars of the late 90s and early 2000s. I guess we won that particular battle, but the war for our attention is far from over.

This is not a pop-up. People hate popups because they're intrusive and have their own window. This API replaces div modals and saves time and code for developers.

Which people still hate because its mostly marketing trash that gets in the way of whatever they were trying to do on the underlying page.

Re: Popover API

#38
post #33
post #18

Earlier quoted context omitted.

I think you're comparing apples with grapples. A popover is floating element that appears to display a contextual piece of information when required. What you're mentioning is something completely different.

> What you're mentioning is something completely different. I think that is because the term 'Pop-up' has changed. It used to mean the opening of a new browser window, typically smaller than the host window and floating somewhere on top. Now it means a modal form within the same window and dom.

[deleted]

Re: Popover API

#39
Another extremely useful feature that won’t work for our Safari users with any older than 1 year old iPhones and means for the next five years we have to support both this API and a full-blown polyfill or alternative implementation.

Re: Popover API

#40
The pessimist inside me worries about whether this could be used to lure people into revealing their credentials; granted, there are thousands of ways to do this easily, but I'm still cautiously optimistic on this topic.
Post reply on HN