Fix non-text <input> elements being included in scanning content (#2034)
This commit is contained in:
parent
0356241362
commit
ecbbfa39a2
@ -39,8 +39,10 @@ class DocumentUtil {
|
||||
case 'SELECT':
|
||||
return new TextSourceElement(element);
|
||||
case 'INPUT':
|
||||
if (element.type === 'text') {
|
||||
imposterSourceElement = element;
|
||||
[imposter, imposterContainer] = this._createImposter(element, false);
|
||||
}
|
||||
break;
|
||||
case 'TEXTAREA':
|
||||
imposterSourceElement = element;
|
||||
|
Loading…
Reference in New Issue
Block a user