Note archive: August 21st, 2020

Replying to a tweet from @adactio

You could test for support like this:

var testButton = document.createElement("button");
if (testButton.type != "share") {
// polyfill

Replying to a tweet from @petele

<button type="share" value="title,text">?

For non-supporting browsers, it’s a regular button and needs polyfilling, no different to the situation with the JavaScript API. But if supported, no JS needed?