aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dom/document-util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dom/document-util.js')
-rw-r--r--ext/js/dom/document-util.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/js/dom/document-util.js b/ext/js/dom/document-util.js
index 8c7adf2c..163800c1 100644
--- a/ext/js/dom/document-util.js
+++ b/ext/js/dom/document-util.js
@@ -39,8 +39,10 @@ class DocumentUtil {
case 'SELECT':
return new TextSourceElement(element);
case 'INPUT':
- imposterSourceElement = element;
- [imposter, imposterContainer] = this._createImposter(element, false);
+ if (element.type === 'text') {
+ imposterSourceElement = element;
+ [imposter, imposterContainer] = this._createImposter(element, false);
+ }
break;
case 'TEXTAREA':
imposterSourceElement = element;