Skip to content

Commit d59ad28

Browse files
Abhishek Bindraclaude
andcommitted
fix(fingerprint): return unique fallback hash instead of null when element is missing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 642b871 commit d59ad28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/utils/dq-element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ const DqElement = memoize(function DqElement(elm, options, spec) {
346346
try {
347347
this._htmlHash = this._element
348348
? computeFingerprintHash(this._element.outerHTML)
349-
: null;
349+
: computeFingerprintHash(null);
350350
} catch {
351-
this._htmlHash = null;
351+
this._htmlHash = computeFingerprintHash(null);
352352
}
353353

354354
/**

0 commit comments

Comments
 (0)