Fix issue when modify non-element nodes (like text)
Merge pull request #4 from legastero/master

Fix issue when modifying text inside an element