Unwarp doesn't update DOM properly??
I use:
-
$(".Something", this).each(function(index){
- $(this).contents().unwrap();
-
});
To unrwap some blocks such as:
this <span class='Something'>is</span> a test
... the problem I then have is that when i step through the nodes, in both IE and Opera it steps through three text nodes:
"this ", "is", " a test"
... I would have thought that the fact that i removed the span would combine the text back into one block as if the span never existed in the first place?
Any ideas how to update the nodes?
Thanks,
Kris