Re: [whatwg/dom] [Proposal] Add EventTarget.getEventListeners() (#412)

@annevk do you mean like a browser extension? Devtools extensions can't be automated, so they won't work in test environments outside of the browser, like tests running in CI and Java integrations. JavaScript loaded into the front-end client to inspect the DOM, outside of an extension, would be the most portable. It's true that extensions allow us to inspect inside of iframes, but we can also do that with Selenium Webdriver. 

Having the API in the browser itself would be pretty critical to exposing rules in a variety of test environments. I wouldn't expect it in JSDOM or PhantomJS since they have more limited DOM APIs, but in headless Chrome for sure.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/412#issuecomment-349360592

Received on Tuesday, 5 December 2017 16:34:08 UTC