The point is the detect wrong or illegal HTML, so assuming
the given text validates is silly. If it would validate, the
whole excercise would be futile. Also, the first example is
valid HTML, and has always been valid HTML. In the second example, no nesting is going on. There's just one A element.