About form.insertAdjacentHTML(‘beforeend’,’1′) causes an endless loop

The following code:

let form = document.getElementsByTagName('form')[0];//<form></form>
for(let item of form){
    form.insertAdjacentHTML('beforeend','<button>1</button>');
}