- From: Domenic Denicola <notifications@github.com>
- Date: Thu, 03 Sep 2015 08:58:05 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 3 September 2015 15:58:33 UTC
Actually the spec already takes care of this. When you convert a JS value to a ShadowRootMode, per IDL, first you do a ToString, and if it does not match `"open"` or `"closed"` (including if it is `"undefined"`), it will throw a TypeError. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/311#issuecomment-137493824
Received on Thursday, 3 September 2015 15:58:33 UTC