-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add .setLegacyMode #356
Conversation
* axe.finishRun() which is called in a blank page. This uses axe.run() instead, | ||
* but with the restriction that cross-origin frames will not be tested. | ||
*/ | ||
public setLegacyMode(legacyMode = true): this { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public setLegacyMode(legacyMode = true): this { | |
public setLegacyMode(legacyMode = true): AxeBuilder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be this
. If we extend this class (which we do in devtools), AxeBuilder
is actually wrong.
`; | ||
${this.source} | ||
axe.configure({ | ||
${this.legacyMode ? '' : 'allowedOrigins: ["<unsafe_all_origins>"],'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${this.legacyMode ? '' : 'allowedOrigins: ["<unsafe_all_origins>"],'} | |
${this.legacyMode ? ''allowedOrigins: ["<same_origin>"]' : 'allowedOrigins: ["<unsafe_all_origins>"],'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's exactly the same thing but with more characters. For what reason would you explicitly want to set it to the default?
No description provided.