Web Share API test

Remember a while back I wrote about some odd behaviour with the Web Share API in Safari on iOS?

When the share() method is triggered, iOS provides multiple ways of sharing: Messages, Airdrop, email, and so on. But the simplest option is the one labelled “copy”, which copies to the clipboard.

Here’s the thing: if you’ve provided a text parameter to the share() method then that’s what’s going to get copied to the clipboard—not the URL.

That’s a shame. Personally, I think the url field should take precedence.

Tess filed a bug soon after, which was very gratifying to see.

Now Phil has put together a test case:

  1. Share URL, title, and text
  2. Share URL and title
  3. Share URL and text

Very handy! The results (using the “copy” to clipboard action) are somewhat like rock, paper, scissors:

  • URL beats title,
  • text beats URL,
  • nothing beats text.

So it’s more like rock, paper, high explosives.

Have you published a response to this? :

Responses

2 Likes

# Liked by Oliver Ash on Friday, April 10th, 2020 at 11:19am

# Liked by Lucid00 on Friday, April 10th, 2020 at 5:10pm

Related posts

Audio

The sound of worlds colliding.

Implementors

Different browser vendors have different priorities.

Code print

Print stylesheets and QR codes: one great flavour and one yucky flavour that taste quite good together.

Declaration

HTML. JavaScript. Why not both?

Designing Progressive Web Apps by Jason Grigsby

A presentation at An Event Apart Seattle 2018.

Related links

Pivoting From React to Native DOM APIs: A Real World Example - The New Stack

One dev team made the shift from React’s “overwhelming VDOM” to modern DOM APIs. They immediately saw speed and interaction improvements.

Yay! But:

…finding developers who know vanilla JavaScript and not just the frameworks was an “unexpected difficulty.”

Boo!

Also, if you have a similar story to tell about going cold turkey on React, you should share it with Richard:

If you or your company has also transitioned away from React and into a more web-native, HTML-first approach, please tag me on Mastodon or Threads. We’d love to share further case studies of these modern, dare I say post-React, approaches.

Tagged with

Building a Frontend Framework; Reactivity and Composability With Zero Dependencies

The thinking behind the minimal JavaScript framework, Strawberry:

Even without specialized syntax, you can do a lot of what the usual frontend framework does—with similar conciseness—just by using Proxy and WebComponents.

Tagged with

12 Days of Web

All twelve are out, and all twelve are excellent deep dives into exciting web technologies landing in browsers now.

Tagged with

Tagged with

Push and ye shall receive | CSS-Tricks

Imagine a PWA podcast app that works offline and silently receives and caches new podcasts. Sweet. Now we need a permissions model that allows for silent notifications.

Tagged with

Previously on this day

6 years ago I wrote Split

Materials and tools; client and server; declarative and imperative; inclusion and privilege.

8 years ago I wrote Getting griddy with it

CSS Grid Layout is so hot right now.

10 years ago I wrote 100 words 019

Day nineteen.

14 years ago I wrote Botonomy

What if we had a Singularity and nobody showed up?

15 years ago I wrote Seattle Apart

Another excellent event apart.

17 years ago I wrote Spaces

It’s the small things that irritate and delight.

18 years ago I wrote Conceptual and photographic art in Brighton

An SMS-based adventure game plus an exhibition by our local Flickrstar.

18 years ago I wrote Machine Tags of Loving Grace

Revish sets the tagging machinery in motion.

20 years ago I wrote The campaign trail of destruction

Even before the election was announced, the Tories had been actively peddling their particular breed of populism.

22 years ago I wrote Live from Baghdad

"Men, we have got to find Saddam Hussein."

23 years ago I wrote The Mirror Project

Needless to say, while I was in Paris, I took the obigatory photograph in the bathroom mirror at the hotel.

23 years ago I wrote City of Love

I’m back from Paris.