From 598549258be35d26a981c44f467a3c75f6517861 Mon Sep 17 00:00:00 2001 From: Khai Truong Date: Tue, 24 Sep 2024 15:57:01 +0700 Subject: [PATCH] Allow scanning on input type = 'search' --- ext/js/dom/text-source-generator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/js/dom/text-source-generator.js b/ext/js/dom/text-source-generator.js index ca1420492..52b2bc8cf 100644 --- a/ext/js/dom/text-source-generator.js +++ b/ext/js/dom/text-source-generator.js @@ -204,7 +204,10 @@ export class TextSourceGenerator { case 'SELECT': return TextSourceElement.create(element); case 'INPUT': - if (/** @type {HTMLInputElement} */ (element).type === 'text') { + if ( + /** @type {HTMLInputElement} */ (element).type === 'text' || + /** @type {HTMLInputElement} */ (element).type === 'search' + ) { imposterSourceElement = element; [imposter, imposterContainer] = this._createImposter(/** @type {HTMLInputElement} */ (element), false); }