Re: [heycam/webidl] A non-optional dictionary argument makes sense at times. (#130)

@annevk

The [spec](https://dom.spec.whatwg.org/#dom-mutationobserver-observe) has "If none of options’ `childList`, `attributes`, and `characterData` is true, throw a TypeError" which is hit for `observe(target, {})` and would as well if the argument were allowed to be omitted. Loosening the IDL to allow things that always throw a `TypeError` doesn't seem very useful.

How to weigh this against spec authors that make dictionaries required when passing `{}` actually does something useful I don't know.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/130#issuecomment-242995366

Received on Sunday, 28 August 2016 19:52:04 UTC