combined DomOutline code