Re: [w3c/browser-payment-api] How will the spec address versioning / feature detection? (#33)

Something like

```
if(PaymentRequest.prototype.hasOwnProperty("shippingAddress")) {
  // shipping address is supported
}
```

You don't need to create an instance.

The problem with having `supports()` methods is that they often don't provide the right granularity or web developers make mistakes that proliferate, which causes implementations to have to lie about support. We've seen this with such methods before.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/33#issuecomment-227294530

Received on Monday, 20 June 2016 22:57:20 UTC