#818270 - Changing maxlength on an input with display: none doesn't change the maxlength

Click the button to change the maxlength from 4 to 10.

The element must have its original maxlength be set via JavaScript, not markup.

The element must be hidden via JavaScript.