[Webtest] disable balance-tags in neko
Lothar Märkle
webtest@lists.canoo.com
Thu, 9 Jun 2005 19:06:58 +0200
On Thu, Jun 09, 2005 at 06:23:53PM +0200, Marc Guillemot wrote:
> I don't see any (simple) way to to that. I don't fully understand what you
that means, this is hardcoded and is part of htmlunit anyway.
> expect: htmlunit needs a well structured xml tree to work on.
the tested application(a cms) inserts custom tags for a explorer toolbar
in the wrong place:
<html>
<head>
<meta ...>
<imp:session.../>
<title>title</title>
</head>
<body>
this causes neko to insert a body tag bevor the <imp/> and the title is
then unset and verifyTitle breaks.
...when i look at the above, I think it's better work around that and
take the benefit of the auto-corrections(since this is only the head of
the page i think there is more to come:) as mentioned in the
white-paper.
lothar
> Lothar Märkle wrote:
> >hi,
> >
> >I recognized that neko is used for html parsing and that it inserts
> >missing tags and corrects the html. But this causes problems in my
> >tests.
> >
> >The neko page stats, that the balance-tags is optional, and i'm looking
> >for a way to turn it off.
> >
> >Is this a runtime option in webtest? Or another way to control this
> >feature?