fixed nested span elements behavior by parsing their content as if they did not exist (tail corner case not handled well).
fix regression with br nested in a element.
no need to get resources for note detaching