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