chore: AXE-2572 Axe-core Upgrade Phase 2#178
chore: AXE-2572 Axe-core Upgrade Phase 2#178gaganmBrowserStack wants to merge 30 commits intomainfrom
Conversation
Making heading-order & heading-order-bp stable
…y-engine-axe-core into Upgrade-to-4.11
…-engine-axe-core into Upgrade-to-4.11
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
1 similar comment
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
…e-core into AXE-2572-phase-2-analysis-and-segregation-of-enhancements
|
Error found in CSV related to Git Merge: Error occured while merging master/main - Cmd('git') failed due to: exit code(1) |
| function getSource(element) { | ||
| if (!element?.outerHTML) { | ||
| if (!element) { | ||
| return ''; | ||
| } | ||
| var source = element.outerHTML; | ||
| if (!source && typeof window.XMLSerializer === 'function') { | ||
| source = new window.XMLSerializer().serializeToString(element); | ||
| } | ||
| let htmlString = truncate(source || ''); | ||
| // Remove unwanted attributes | ||
| const regex = /\s*data-percy-[^=]+="[^"]*"/g; | ||
| htmlString = htmlString.replace(regex, ''); | ||
| return htmlString; | ||
|
|
||
| return truncateElement(element); | ||
| } |
There was a problem hiding this comment.
reverting a11y-engine changes here - pls check
There was a problem hiding this comment.
disable or remove this workflow - not applicable for us
There was a problem hiding this comment.
rebase PR towards release branch to test out this workflow post merge
| Rule.prototype._logGatherPerformance = function _logGatherPerformance() { | ||
| // log('gather (', nodes.length, '):', performanceTimer.timeElapsed() + 'ms'); | ||
| Rule.prototype._logGatherPerformance = function _logGatherPerformance(nodes) { | ||
| log( |
There was a problem hiding this comment.
does this log show up in browser console?
There was a problem hiding this comment.
Yes, They do show up in browser console
| let index = 0; | ||
| if (parent.nodeName === 'BODY') { | ||
| let count = 0; | ||
| // Single pass over siblings: count valid children & locate node position. | ||
| for ( | ||
| let sib = parent.firstElementChild; | ||
| sib; | ||
| sib = sib.nextElementSibling | ||
| ) { | ||
| if (sib.hasAttribute('data-percy-injected')) { | ||
| continue; | ||
| } | ||
| count++; | ||
| if (sib === node) { | ||
| index = count; | ||
| } | ||
| } | ||
| nthChild = count > 1 ? `:nth-child(${index})` : ''; | ||
| } else { | ||
| index = Array.prototype.indexOf.call(parent.children, node) + 1; | ||
| nthChild = `:nth-child(${index})`; | ||
| } |
There was a problem hiding this comment.
a11y-engine changes are getting reverted
|
|
||
| // this.logMeasures('axe'); | ||
| this.measure('axe', 'mark_axe_start', 'mark_axe_end', true); | ||
| this.logMeasures('axe'); |
There was a problem hiding this comment.
getting reverted - pls verify
| ); | ||
| // log audit/rule measures | ||
| // this.logMeasures(); | ||
| this.logMeasures(); // was commented out previously |
| if (window.performance && window.performance.measure !== undefined) { | ||
| if (Object.keys(details).length > 0) { | ||
| const measureOpts = { | ||
| detail: details, | ||
| start: startMark, | ||
| end: endMark | ||
| }; | ||
| window.performance.measure(measureName, measureOpts); | ||
| } else { | ||
| window.performance.measure(measureName, startMark, endMark); | ||
| } |
There was a problem hiding this comment.
a11y-engine changes getting reverted
| * Starts from the most recent start()/auditStart() call. | ||
| * @param {String|undefined} measureName If provided, will only log up to the first matching measure. | ||
| */ | ||
| logMeasures(measureName) { |
There was a problem hiding this comment.
this function should be commented everywhere it is getting called
There was a problem hiding this comment.
Why do have to comment this function ?
| "messages": { | ||
| "pass": "the autocomplete attribute is correctly formatted", | ||
| "fail": "Add autocomplete attribute to form fields with a valid value as per HTML specification : https://html.spec.whatwg.org/#autofill-detail-tokens. In \"name\" attribute of field, prefer to use standard autocomplete value since browsers use \"name\" to suggest autofill. For field with no standard autocomplete value (eg: College ID), prefer to use autocomplete=\"off\"." | ||
| "fail": "the autocomplete attribute is incorrectly formatted", |
There was a problem hiding this comment.
This was changed by us. Please verify and revert
|
|
||
| if ( | ||
| isHumanInterpretable(accText) < 1 || | ||
| isHumanInterpretable(visibleText) < 1 | ||
| ) { |
There was a problem hiding this comment.
Would be causing the diff
<< Describe the changes >>
Closes: