Ned,
And the example was actually valid HTML 3.2. It's just that you have to
add
logic for omitted end tags like </td> and </tr>.
I believe that the push is for all tags to be balance, as with XML. But, yes, one can add logic for a set of tags to close the current DOM child and open a new one. However, I would suggest that he focus the core of what he is doing on making it work with properly balanced tags, and let the fixups occur earlier in the flow.
--- Noel