title: Is it bad to have script tag inside div?
body: <p>What is bad about having a script tag inside div inside body?</p>
  
  <p>I'm dynamically updating a div to reload a javascript code inside a div. Are there any issues to worry about ?</p>
  
  <hr>
  
  <h1>Edit</h1>
  
  <p>As @Bergi insisted on seeing the code. Here it is(see below). This <code>div</code> (along with other <code>div</code>(s) containing presentation HTML elements) are updated via AJAX. This <code>script</code> inside <code>div</code> contains maps to do processing of newly loaded HTML elements on page with raw data.</p>
  
  <pre><code>        &lt;div&gt;
              &lt;script type="text/javascript"&gt;
                  var namesMap = &lt;dynamic string from server here&gt;;
                  var addressesMap = &lt;dynamic string from server here&gt;;
              &lt;/script&gt;
          &lt;/div&gt;
  </code></pre>