I'm facing an issue with the following code:
$("#myId").html(
"<img src='" +
$(xml).find("picture").text() +
"' height="42" width="42"></img>"
);
Everything works perfectly until I include the 'height="42" width="42"'
text. Why does this happen? Is it not possible to add size attributes in this manner?