I have a problem with NUnitAsp which I put down to the following.
It fails properly to parse a page in which there is a line:
<script> ......... </script>
between the DOCTYPE line and the <html> tag. A similar page with the same <script> line immediately after the <html> tag works fine.
The symptom is that it fails to find any controls, and/or gives an error saying that it can't find a form [XML] node to work on.
Putting some diagnostic printing into the parser code shows that the InnerXML of the CurrentPage when looking at the faulty page consists only of the <script> line, whereas on a good page the whole page's XML is there, so naturally it then fails to find any of the specified Controls.
I don't know if this is legal HTML or not, but it is generated by our Visual Studio, and the standard browser is quite happy with it.
We would be grateful for any assistance.
Regards,
Tony Maynard-Smith
tony.maynard-smith@ntlworld.com
Logged In: YES
user_id=861973
Originator: NO
It is not legal HTML. The opening html tag should be the first thing after the doctype. You should alter your code to place the script tag in the head or body element.