<div onclick="alert(this.innerHTML);">
<p>Since you saw <span title=":P" class="emoticon tongue"></span> if <strong>you read</strong> the intro post <span title=":D" class="emoticon laugh"></span><span title=":D" class="emoticon laugh"></span> a</p>
</div>
I have this markup, its fine and behaves as expected in all other browsers (as usual) but in IE, when I alert it, it shows me markup with out the space before the "if" and the last "a", I do some manipulation using this html with jquery and its becoming a headache that the manipulated string always has those spaces absent, even though if I view source in IE the spaces are present (which it why it displays correctly) but never returns me the actual html on alert or after manipulation
Thank you
EDIT: Basically I am facing a problem in this use case, what you see is the HTML of a post that can be edited the emotion tongue etc are spans that make emotions appear on my site using a background property in CSS, there is an edit button under the post, when you click EDIT .. it puts this text in a contenteditable="true" div and replaces the spans with the ":P" and ":D" textual equivalents.. but in IE i am returned this ":Pif" and in other browsers.. as expected and intended .. this ":P if". << note the space.