Make _conformDOM work with nested elements