title: HTML5 data blocks and script "src" attribute
body: <p>Sometime ago I was guessing if there was a trick to directly load XML using some new HTML5 technologies, then I found &quot;data islands&quot;, then I found &quot;HTML5 data blocks&quot;.</p>
  <p>Reading the following address: <a href="https://developer.mozilla.org/en-US/docs/Using_XML_Data_Islands_in_Mozilla" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Using_XML_Data_Islands_in_Mozilla</a> . I discovered this:</p>
  <blockquote>
  <p>JavaScript can use the content of a <code>&lt;script&gt;</code> element as a data block <strong>if the src attribute is omitted</strong>...</p>
  </blockquote>
  <p>Why its not allowed to get &quot;data&quot; that way? What's the problem? Its not clear that with <code>src</code> it's much more useful?</p>
  <p>I've some XML that I would like to parse, but I would like to put it separatelly (from the HTML).</p>
  <p>Its a security issue? Lack of implementation? What else?</p>
  <p>Thank you for your assistance.</p>
  <h2>Update</h2>
  <p>I knew that I could:</p>
  <pre><code>&lt;object id=&quot;xml&quot; data=&quot;the.xml&quot; type=&quot;text/xml&quot; charset=&quot;UTF-8&quot; style=&quot;display:none&quot;&gt;&lt;/object&gt;
  </code></pre>
  <p>But the question remains:</p>
  <p>They didn't allowed the <code>src</code> attribute because of a security issue? I'm just curious.</p>