Adding minor DOM extensions.
Refactoring some utility code into HTML-specific module.
Adding text node checking to textValue property.