Tightened up XHTML minimization logic - closes ...
Tightened up XHTML minimization logic - closes ...

Tightened up XHTML minimization logic - closes #2043.


biswanaths/scala-xml,SethTisue/scala-xml,ashawley/scala-xml