News for hackers. Stuff that matters.
Re:Popover API by bestest on Friday May 10, 2024 @08:52AM (#40318362)
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.

Re:Popover API by alt227 on Friday May 10, 2024 @09:10AM (#40318557)
> 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 by The_Colonel on Friday May 10, 2024 @11:39AM (#40320260)
I don't think this is often called "pop-up", mostly I see either popover or tooltip.
Re:Popover API by sseagull on Friday May 10, 2024 @12:21PM (#40320762)
Maybe by developers. But the public certainly calls them pop-ups

https://www.google.com/search?hl=en&q=%22newsletter%20pop%2D...

Re:Popover API by antifa on Saturday May 11, 2024 @11:05AM (#40328542)
Either way those are called modals, not popovers.
Re:Popover API by mst on Friday May 10, 2024 @09:34AM (#40318791)
I tend to use "apples to aardvarks" but now I'm not sure whether I like mine or yours better.

Shall have to alternate them for a bit and call it A/G testing.

Re:Popover API by nerdponx on Friday May 10, 2024 @09:23AM (#40318667)
And surely this new API will not be abused. Right?
Re:Popover API by lolinder on Friday May 10, 2024 @09:49AM (#40318963)
At this point in the web's development the better question is: will this allow our abusers to do things that weren't possible before or in ways that are less blockable than before?

I think the answer is pretty clearly no to both questions, but it will allow us to simplify a lot of our code that was designed to make actually-useful popovers.

Re:Popover API by jwells89 on Friday May 10, 2024 @11:25AM (#40320122)
It might be, but at least the offending site can be taken care of by closing a single tab.

The part that sucked about old style popups is that they leaked into and on occasion would hijack (in the case of popup chains) your OS’ windowing system and at best make a mess of things or at worst turn your computer unusable.

Re:Popover API by hhreefgguu on Friday May 10, 2024 @10:03AM (#40319129)
It seems like the only context in which it could be abused would be if you have JS disabled but this still works? (Because of course you can do this with JS).

As CSS becomes more powerful it seems like being able to disable these powerful features, while still retaining the “document styling” features, will be important.

Re:Popover API by notatoad on Friday May 10, 2024 @02:04PM (#40321966)
it doesn't allow developers to do anything they can't already do.

it does make those elements easier for adblockers to remove though, by implementing the functionality in a standard way that constrains all the related logic into one easily removable element.