attachDom: Refactor to extract setters
attachDom: Refactor tests and extract DOM setters
Merge pull request #56 from Attamusc/feature/attach-dom-text-whitespace

attachDom: Refactor and update setters