Yes, absolutely. And nested divs. And shed loads of whitespace. Which makes the regex route, IMHO, even more scary.
I was attempting to make a point with a simple case. But, as you point out, it was probably more misleading than helpful.
I must have a look at HTML::Parser. It appears to be the parser of choice 'round these parts.