added support for empty tags in getOuterHTML
added check for child nodes
Merge pull request #3 from atdrago/master

Added support for empty tags in getOuterHTML