we have a system we want to test with Testing Framework. Of course it is a legacy system that has not very well formatted HTML markup and of course is too expensive to change - you probably all know this...
On this page we have a problem with one of the rows in the nested table does not have an enclosing end tag. This results in table not being found. But only, if the table is searched from a form on the page. If tables are searched from the root of the page, invalid table is found.
Why is that? I would expect to find all tables inside the form, regardless of whether I am searching within the form or the whole tree?
I have attached a VS project which reproduces the problem.