The following code results in an HTTP request for an image resource in both Firefox and Chrome.
var el = document.createElement('div');
el.innerHTML = "<img src='junk'/>";
As a programmer, I may or may not want el
to be rendered. If I don't, then maybe I don't want a request being sent for the src.
dojo.toDom()
shows the same behaviour.
Is there anyway to get a document fragment from a string, without referenced resources from being requested?