fixed: finding element to autofocus
fixed: finding element to autofocus

added check if element has children, before trying to traverse through
them

lozandier/dialog-polyfill,kublaj/dialog-polyfill,lozandier/dialog-polyfill,kublaj/dialog-polyfill,elektronik2k5/dialog-polyfill,elektronik2k5/dialog-polyfill,huangxok/dialog-polyfill,samthor/dialog-polyfill,neilrees/dialog-polyfill,GoogleChrome/dialog-polyfill,samthor/dialog-polyfill,huangxok/dialog-polyfill,GoogleChrome/dialog-polyfill,neilrees/dialog-polyfill