Menu

#100 parse exception on valid html

open
nobody
None
5
2005-12-09
2005-12-09
Anonymous
No

I keep getting a parseException on the following html:

vvvvvv The following HTML could not be parsed by
NUnitAsp vvvvvv

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd
" >
<html>
<head>
<title>TestForm</title>
</head>
<body>
<form name="login" method="post"
action="login.aspx" id="login">
<input type="hidden" name="__VIEWSTATE"
value="dDw5NjU1MTU1Ozs+6cNwILTfeiJQbjcrzLZOnxoKRRI=" />

<br>
<input type="submit"
name="Button1" value="Button" id="Button1" />
</form>
</body>
</html>

^^^^^^ The preceding HTML could not be parsed by
NUnitAsp ^^^^^^

This is a trimmed down version of my page. I was
hoping to see which control was causing the problems,
but I found that even this stripped down version
causes the exception.

The kicker is that the html validates! So what is the
issue?

Discussion

  • James Little

    James Little - 2005-12-09

    Logged In: YES
    user_id=499667

    What exception does your test show?

     
  • Carl

    Carl - 2006-02-16

    Logged In: YES
    user_id=1453660

    I'm not an expert on NUnitAsp, but I'm pretty sure this is
    caused by the loose.dtd reference in the Doctype tag.

    Try and remove the "http://....loose.dtd" reference and see
    if the test works.

    Having to remove the dtd is obviously not a good option -
    but just to verify the cause...

    I have found that NUnitAsp throws the 'expected Tagend'
    ParserException when using loose.dtd or strict.dtd

    I hope this will be fixed in NUnitAsp 2.0 ???

     

Log in to post a comment.