Re: [w3ctag/design-reviews] Badging API (#387)

Hi @fallaciousreasoning @raymeskhoury, I have a question about progressive enhancement & feature detection.

Suppose I'm a Twitter engineer. Twitter currently munges `window.title` to badge an unread count. I'd like to adopt `Badge.set()` when it's available, and I'd prefer to only fall back to my legacy `window.title` munging when `Badge.set()` won't work for me. How would such an author know when to fall back to the legacy code path?

My read of the proposal is that this isn't currently possible. That is, feature-detecting the presence of `window.Badge` or the `Badge.set()` method doesn't tell me, the website author, if calling `Badge.set()` will result in some kind of user-visible UI change.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/387#issuecomment-519625072

Received on Thursday, 8 August 2019 18:00:13 UTC