Validate an element.
Function forwards the walker until an element is met.
If element if of the right type, it is entered and the validation
continues inside the element. After validation, regardless of whether an
error occurred, the walker is at the same depth in the dom tree.