Unwarp doesn't update DOM properly??

Unwarp doesn't update DOM properly??

I use:

  1. $(".Something", this).each(function(index){
  2.      $(this).contents().unwrap(); 
  3.  });
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