Doing: $("<p>").append("<span>Here</span> Gone") Results in only <span>Here</span> being appended.
The above seems unintuitive to me. I am wondering if this could be considered a bug or if it's really intended to happen? If it's intended I was wondering if there was a rational reason this happens because it seems that we have to literally go out of our way when building with $("") it also means that if we want to continue to use $("") to build we must pull the $().html() and join it when trying to add multiple (seperately built) pieces to the element and then on the last part of the chain just use $("").html like below:
twt_paragraph.append(twt_anchor);
twt_ele.html(twt_paragraph.html(twt_paragraph.html()+link_users(tweets[i].text)));
According to Ender and the DOM I have "0.4.3-dev".
Doing:
$("<p>").append("<span>Here</span> Gone")Results in only<span>Here</span>being appended.The above seems unintuitive to me. I am wondering if this could be considered a bug or if it's really intended to happen? If it's intended I was wondering if there was a rational reason this happens because it seems that we have to literally go out of our way when building with
$("")it also means that if we want to continue to use$("")to build we must pull the$().html()and join it when trying to add multiple (seperately built) pieces to the element and then on the last part of the chain just use$("").htmllike below:According to Ender and the DOM I have "0.4.3-dev".