w3c / payment-request

Payment Request API
https://www.w3.org/TR/payment-request/
Other
489 stars 135 forks source link

Can PaymentMethodChangeEventInit really have a required member? #770

Closed cdumez closed 6 years ago

cdumez commented 6 years ago

Can PaymentMethodChangeEventInit really have a required member given that it is optional in the event constructor?

See: https://w3c.github.io/payment-request/#dom-paymentmethodchangeeventinit https://w3c.github.io/payment-request/#paymentmethodchangeevent-interface

cdumez commented 6 years ago

The *EventInit parameters are usually optional but AFAIK, none of them currently have required members. PaymentMethodChangeEventInit seems to be the exception.

Can this methodName member be optional?

cdumez commented 6 years ago

@marcoscaceres @aestes

marcoscaceres commented 6 years ago

@domenic, can you provide a bit of IDL guidance here? Do we make eventInitDict required or do we give the methodName member a default? Or something else entirely?

domenic commented 6 years ago

A default of "" seems fine.