modify children iterator for pseudo element.