Re: [webcomponents] attachShadow must throw a TypeError when mode is omitted (#311)

Yeah, I just re-read, and I was right the first time. Without `required`, if it is `undefined` (e.g. via omission from the JS object that gets converted into an IDL dictionary), the conversion to ShadowRootMode will not take place.

So yeah, just add `required` and it'll work as expected.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/311#issuecomment-137494891

Received on Thursday, 3 September 2015 16:00:52 UTC