return valid markup on empty nodes