redo addSelectorTextHTML and wrapTextHTML->captureAttribute