This patch prevents axe-webdriverjs from infinitely recursing when injecting axe-core into <iframe>s. I've re-written the code we use for injecting which will only recurse as deep as the number of nested <iframe>s on the page.
In order to keep the code "easy to read/write", I've used async/await rather than chaining Promises together. Because we do not have a clear picture of what Node.js versions we need to support here, I've added Babel in order to ensure async/await works in older Nodes. It is currently setup use support Node v4.
A test case has been added ensuring this solves the problem described in #63.
This patch prevents
axe-webdriverjs
from infinitely recursing when injectingaxe-core
into<iframe>
s. I've re-written the code we use for injecting which will only recurse as deep as the number of nested<iframe>
s on the page.In order to keep the code "easy to read/write", I've used
async/await
rather than chainingPromise
s together. Because we do not have a clear picture of what Node.js versions we need to support here, I've added Babel in order to ensureasync/await
works in older Nodes. It is currently setup use support Node v4.A test case has been added ensuring this solves the problem described in #63.Closes #63.