bug 5162: follow-up patch to not clear hidden input setting attribute type