Skip to content

Commit 67103b6

Browse files
committed
MC-16608: Use escaper methods
- clean up code
1 parent 555480c commit 67103b6

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Config/view/adminhtml/templates/system/config

1 file changed

+2
-1
lines changed

app/code/Magento/Config/view/adminhtml/templates/system/config/js.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ originModel.prototype = {
176176
}
177177
},
178178
clearRegionField: function(disabled) {
179-
var text = document.createElement('text');
179+
var text = document.createElement('input');
180+
text.setAttribute('type', 'text');
180181
text.setAttribute('name', this.regionElement.name);
181182
text.setAttribute('title', this.regionElement.title);
182183
text.setAttribute('id', this.regionElement.id);

0 commit comments

Comments
 (0)