r48661: wrapped lines where the type attribute is dynamically changed to 'password' inside try-catch clauses to avoid javascript errors
In order to support inField labels on secret text fields, it is necessary to dynamically change the 'type' attribute of the 'input' element to/from 'password'. It seems like dynamically changing the type attribute of an input element is not permitted, so an error is thrown, which aborts the init function, before the behaviours are applied to the text field. As per ICE-10374, this was fixed on the 4.0 trunk, and this error was only seen on IE8. It seems like recent browser updates also started to throw this error. This is fixed with try-catch clauses. Even though, this change is supposedly not permitted, it can still be done, and no errors are thrown with these try-catch clauses.
Attached test case that shows this issue.
Steps: