Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share Button Type #11

Closed
adactio opened this issue Oct 20, 2020 · 4 comments
Closed

Share Button Type #11

adactio opened this issue Oct 20, 2020 · 4 comments
Labels
Category: HTML For all HTML-related proposals (not only the HTML standard but any markup-related too). Looking for interest Incubation is currently seeking community interest

Comments

@adactio
Copy link

adactio commented Oct 20, 2020

Introduction

The Web Share API provides a means “for sharing text, URLs and images to an arbitrary destination of the user's choice”. The most basic sharing use case is sharing the current page (especially important in progressive web apps that launch with a display value of “standalone” or “fullscreen”). A declarative option that meets this basic use case would enable authors to provide this functionality without requiring knowledge of JavaScript.

A value of “share” for the type attribute of the button element would allow authors to provide an interface element for sharing the current web page.

The content model for the button element allows for its type attribute to be extended in this way while allowing backwards-compatibility with non-supporting browsers. Support for a value of "share" can be tested in the same way that supported values for input types can.

Here's a polyfill.

Read the complete Explainer.

Feedback

I'm currently gathering feedback on existing usage of the Web Share API to verify that sharing the current page URL is a common use case.

I welcome feedback in this thread, but encourage you to file bugs against the Explainer.

@travisleithead travisleithead added the Category: HTML For all HTML-related proposals (not only the HTML standard but any markup-related too). label Oct 22, 2020
@gangsthub
Copy link

I know it's mentioned in the explainer, but I think it's worth pointing out the source for historical reasons: https://twitter.com/AdaRoseCannon/status/1384639188700733443?s=20 😉

@yoavweiss
Copy link
Collaborator

Hey @adactio! Have you considered posting something to this effect in https://github.com/openui/open-ui/issues?

Should we "move" this issue there? It seems like that where most implementers with interest in extending HTML are at these days..

@yoavweiss yoavweiss added the Looking for interest Incubation is currently seeking community interest label Mar 6, 2024
@adactio
Copy link
Author

adactio commented Apr 2, 2024

Hey @adactio! Have you considered posting something to this effect in https://github.com/openui/open-ui/issues?

Looks like it's already there: openui/open-ui#974

@marcoscaceres
Copy link
Contributor

Ok cool. Closing this one. Subscribed to follow along in openui/open-ui#974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: HTML For all HTML-related proposals (not only the HTML standard but any markup-related too). Looking for interest Incubation is currently seeking community interest
Projects
None yet
Development

No branches or pull requests

5 participants