August 21st, 2020
Replying to
You could test for support like this:
var testButton = document.createElement("button");
testButton.setAttribute("type","share");
if (testButton.type != "share") {
// polyfill
}
« Newer `? 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?">Older »
2 Likes
# Liked by Ada Rose Cannon on Friday, August 21st, 2020 at 5:32pm
# Liked by Andy Davies on Friday, August 21st, 2020 at 6:17pm