Re: [webcomponents] Closed flag proposal breaks ability to audit and automate tests of web pages (#354)

There is nothing that prevents authors from exposing shadow DOM via JavaScript.  e.g. you can add `shadowRoot` property on the shadow host during the testing.

The whole point of this flag is so that components can enforce the encapsulation as they wish.  In the case of debugging and testing, each component should be either:
 1. made by the page author in which case the author can expose the shadow root during testing,
 2. provided by a third party in which case standards compliance, accessibility, and other kinds of testing should be done separately.


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

Received on Friday, 4 December 2015 20:03:52 UTC