Skip to content

Commit c459c8e

Browse files
Abhishek Bindraclaude
andcommitted
fix(fingerprint): propagate htmlHash through trimElementSpec serialization
htmlHash was computed on DqElement and included in toJSON, but trimElementSpec in process-aggregate.js builds the final node output from scratch and was not copying it through. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0176b29 commit c459c8e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/core/reporters/helpers/process-aggregate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,9 @@ function trimElementSpec(elmSpec = {}, runOptions) {
103103
if (runOptions.xpath) {
104104
serialElm.xpath = elmSpec.xpath ?? ['/'];
105105
}
106+
// [a11y-core]: propagate htmlHash to final output
107+
if (elmSpec.htmlHash) {
108+
serialElm.htmlHash = elmSpec.htmlHash;
109+
}
106110
return serialElm;
107111
}

0 commit comments

Comments
 (0)