el.email = document.createElement('input');
el.email.type = "email"; el.email = document.createElement('input');
el.email.type = "email"; el.email = Object.assign(document.createElement('input'),{type:'email'});Also used was object destructuring: http://odetocode.com/blogs/scott/archive/2014/09/11/features...
If anything it should be `var email = {...document.createElement('input'), type: 'email'}`
But that would result in `Object.assign({}, document.createElement('input'), { type: 'email' })`
Got 4 up votes though..