title: JavaScript MutationObserver calling on itself recursively
body: <p>I am trying to use MutationObserver to Observe for style attribute changes in body element and change the overflow property of the style attribute of body  to scroll.The style attribute changes when i make the browser window smaller .Firefox ends up crashing saying unresponsive script.Can anyone point out what wrong  am i doing here.It seems to work properly in chrome though.</p>
  
  <p>My code:</p>
  
  <pre><code>var target=document.body;
  
  var Observer=new MutationObserver(function(mutations) {
  
      mutations.forEach(function(mutationRecord){
          document.body.style.overflow="auto";
      });
  
  });  
  
  Observer.observe(target,{attributes:true,attributeFilter:['style']});
  </code></pre>