[Webtest] BUG? Exception in JTidy

Carsten Seibert seibert@acm.org
Sat, 2 Mar 2002 16:58:25 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C1C20B.80E9CF80
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Osservatorio Prezzi dei Beni e dei ServiziHi Ugo,

I just run the example you had attached to your mail and I also run into the
JTidy exception. I've locally updated to the latest JTidy version
(jtidy-04aug2000r7-dev) and that seems to fix the problem. I'll make a few
more tests and if everything is ok I'll upgrade WebTest to this JTidy
version.

Besides that, I noticed a strange nesting of tags in your document. It seems
that it has multiple <html> tags in it. This is also what JTidy indicated
when enabling the showhtmlparseroutput option in WebTest's config element.

My console showed:

 [testSpec] -> gotoTarget(by url): file:///c:/temp/ugo.html
 [testSpec] line 18 column 1 - Warning: discarding unexpected <html>
 [testSpec] line 19 column 1 - Warning: <body> isn't allowed in <body>
elements
 [testSpec] line 21 column 1 - Warning: <table> lacks "summary" attribute
 [testSpec] line 26 column 1 - Warning: <table> lacks "summary" attribute
 [testSpec] line 34 column 1 - Warning: content occurs after end of body
 [testSpec] line 39 column 2 - Warning: unknown attribute
"xmlns:xsp-request"
 [testSpec] line 39 column 2 - Warning: unknown attribute "xmlns:bpadecode"
 [testSpec] line 39 column 2 - Warning: unknown attribute "xmlns:session"
 [testSpec] line 39 column 2 - Warning: unknown attribute "xmlns:esql"
 [testSpec] line 39 column 2 - Warning: unknown attribute "xmlns:xspdoc"
 [testSpec] line 39 column 2 - Warning: unknown attribute "xmlns:xsp"
 [testSpec] line 42 column 9 - Warning: unknown attribute
"xmlns:xsp-request"
 [testSpec] line 42 column 9 - Warning: unknown attribute "xmlns:bpadecode"
 [testSpec] line 42 column 9 - Warning: unknown attribute "xmlns:session"
 [testSpec] line 42 column 9 - Warning: unknown attribute "xmlns:esql"
 [testSpec] line 42 column 9 - Warning: unknown attribute "xmlns:xspdoc"
 [testSpec] line 42 column 9 - Warning: unknown attribute "xmlns:xsp"
 [testSpec] line 45 column 9 - Warning: unknown attribute
"xmlns:xsp-request"
 [testSpec] line 45 column 9 - Warning: unknown attribute "xmlns:bpadecode"
 [testSpec] line 45 column 9 - Warning: unknown attribute "xmlns:session"
 [testSpec] line 45 column 9 - Warning: unknown attribute "xmlns:esql"
 [testSpec] line 45 column 9 - Warning: unknown attribute "xmlns:xspdoc"
 [testSpec] line 45 column 9 - Warning: unknown attribute "xmlns:xsp"
 [testSpec] line 48 column 1 - Warning: <table> lacks "summary" attribute
 [testSpec] line 49 column 10 - Warning: trimming empty <caption>
 [testSpec] Completed Step: Access page in temp" (2/5)

Most of the warnings can be ignored, but the first two messages indicate,
that there is something seriously wrong with the document (invalid tag
nesting).

Mittie: The new version of JTidy also seems to fix the differences between
the two Node implementations (xerces vs. JTidy).

Ciao,
Carsten

Carsten Seibert
seiberTEC GmbH Switzerland
mailto:seibert@seibertec.ch  / phone: +41 79 636 4317

  -----Original Message-----
  From: webtest-admin@gate.canoo.com [mailto:webtest-admin@gate.canoo.com]On
Behalf Of Ugo Cei
  Sent: Freitag, 1. Marz 2002 17:08
  To: webtest@gate.canoo.com
  Subject: [Webtest] BUG? Exception in JTidy


   Home Archivio Logout
        Biomedicali Presidi Consumabili Servizi
        Pellicole Materiale per Dialisi Mezzi di Contrasto

  INCIDENZA DI SPESA SUL TOTALE BENI E SERVIZI
  Tipologia di prodotto: PELLICOLE RADIOGRAFICHE
  Ente: A.O. MACCHI
  Anno di riferimento: 2000
     Ente Importo Complessivo di Aggiudicazione (IVA compresa) [Lire] Spesa
per Beni e Servizi [Lire] Incidenza
        A.O. MACCHI 6.990.259.140 181.330.000.000 3,855%


------=_NextPart_000_0006_01C1C20B.80E9CF80
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Osservatorio Prezzi dei Beni e dei Servizi</TITLE>
<LINK=20
href=3D"styles/bpa.css" type=3Dtext/css rel=3Dstylesheet>
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
Ugo,</FONT></SPAN></DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =
size=3D2>I just=20
run the example you had attached to your mail and&nbsp;I also run into =
the JTidy=20
exception. I've locally updated to the latest JTidy version=20
(jtidy-04aug2000r7-dev) and that seems to fix the problem. I'll make a =
few more=20
tests and if everything is ok I'll upgrade WebTest to this JTidy=20
version.</FONT></SPAN></DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2>Besides that, I noticed a strange nesting of tags in your =
document. It=20
seems that it has multiple &lt;html&gt; tags in it. This is also what =
JTidy=20
indicated when enabling the showhtmlparseroutput option in WebTest's =
config=20
element.</FONT></SPAN></DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =
size=3D2>My=20
console showed:</FONT></SPAN></DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2>&nbsp;[testSpec] -&gt; gotoTarget(by url): <A=20
href=3D"file:///c:/temp/ugo.html">file:///c:/temp/ugo.html</A><BR>&nbsp;[=
testSpec]=20
line 18 column 1 - Warning: discarding unexpected=20
&lt;html&gt;<BR>&nbsp;[testSpec] line 19 column 1 - Warning: =
&lt;body&gt; isn't=20
allowed in &lt;body&gt; elements<BR>&nbsp;[testSpec] line 21 column 1 - =
Warning:=20
&lt;table&gt; lacks "summary" attribute<BR>&nbsp;[testSpec] line 26 =
column 1 -=20
Warning: &lt;table&gt; lacks "summary" attribute<BR>&nbsp;[testSpec] =
line 34=20
column 1 - Warning: content occurs after end of body<BR>&nbsp;[testSpec] =
line 39=20
column 2 - Warning: unknown attribute =
"xmlns:xsp-request"<BR>&nbsp;[testSpec]=20
line 39 column 2 - Warning: unknown attribute=20
"xmlns:bpadecode"<BR>&nbsp;[testSpec] line 39 column 2 - Warning: =
unknown=20
attribute "xmlns:session"<BR>&nbsp;[testSpec] line 39 column 2 - =
Warning:=20
unknown attribute "xmlns:esql"<BR>&nbsp;[testSpec] line 39 column 2 - =
Warning:=20
unknown attribute "xmlns:xspdoc"<BR>&nbsp;[testSpec] line 39 column 2 - =
Warning:=20
unknown attribute "xmlns:xsp"<BR>&nbsp;[testSpec] line 42 column 9 - =
Warning:=20
unknown attribute "xmlns:xsp-request"<BR>&nbsp;[testSpec] line 42 column =
9 -=20
Warning: unknown attribute "xmlns:bpadecode"<BR>&nbsp;[testSpec] line 42 =
column=20
9 - Warning: unknown attribute "xmlns:session"<BR>&nbsp;[testSpec] line =
42=20
column 9 - Warning: unknown attribute "xmlns:esql"<BR>&nbsp;[testSpec] =
line 42=20
column 9 - Warning: unknown attribute "xmlns:xspdoc"<BR>&nbsp;[testSpec] =
line 42=20
column 9 - Warning: unknown attribute "xmlns:xsp"<BR>&nbsp;[testSpec] =
line 45=20
column 9 - Warning: unknown attribute =
"xmlns:xsp-request"<BR>&nbsp;[testSpec]=20
line 45 column 9 - Warning: unknown attribute=20
"xmlns:bpadecode"<BR>&nbsp;[testSpec] line 45 column 9 - Warning: =
unknown=20
attribute "xmlns:session"<BR>&nbsp;[testSpec] line 45 column 9 - =
Warning:=20
unknown attribute "xmlns:esql"<BR>&nbsp;[testSpec] line 45 column 9 - =
Warning:=20
unknown attribute "xmlns:xspdoc"<BR>&nbsp;[testSpec] line 45 column 9 - =
Warning:=20
unknown attribute "xmlns:xsp"<BR>&nbsp;[testSpec] line 48 column 1 - =
Warning:=20
&lt;table&gt; lacks "summary" attribute<BR>&nbsp;[testSpec] line 49 =
column 10 -=20
Warning: trimming empty &lt;caption&gt;<BR>&nbsp;[testSpec] Completed =
Step:=20
Access page in temp" (2/5)</DIV></FONT></SPAN>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =
size=3D2>Most=20
of the warnings can be ignored, but the first two messages indicate, =
that there=20
is something seriously wrong with the document (invalid tag nesting).=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2>Mittie: The new version of JTidy also seems to fix the =
differences=20
between the two Node implementations (xerces vs. =
JTidy).</FONT></SPAN></DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2>Ciao,</FONT></SPAN></DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2>Carsten</FONT></SPAN></DIV>
<DIV><SPAN class=3D973340814-02032002><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D973340814-02032002></SPAN><FONT size=3D2>Carsten=20
Seibert<BR>seiberTEC GmbH Switzerland<BR><A=20
href=3D"mailto:seibert@seibertec.ch">mailto:seibert@seibertec.ch</A>&nbsp=
; /=20
phone: +41 79 636 4317<BR></DIV></FONT>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> =
webtest-admin@gate.canoo.com=20
  [mailto:webtest-admin@gate.canoo.com]<B>On Behalf Of </B>Ugo=20
  Cei<BR><B>Sent:</B> Freitag, 1. M&auml;rz 2002 17:08<BR><B>To:</B>=20
  webtest@gate.canoo.com<BR><B>Subject:</B> [Webtest] BUG? Exception in=20
  JTidy<BR><BR></FONT></DIV>
  <DIV id=3Dlogo><SPAN class=3Dtitle><A target=3D_self =
href=3D"index.html"><IMG=20
  alt=3D"Benchmarking Prezzi e Acquisti" src=3D"images/titolo_bpa.gif" =
border=3D0></A>=20
<!-- "Benchmarking<br/>Prezzi e<br/>Acquisti --></SPAN><SPAN =
class=3Dtopmenu><A=20
  href=3D"index.html">Home</A>&nbsp;<A=20
  href=3D"profile.phtml?cat=3Dbiomedicali/">Archivio</A>&nbsp;<A=20
  href=3D"logout.html">Logout</A> </SPAN></DIV>
  <DIV id=3Dcatmenu>
  <TABLE cellSpacing=3D0 cellPadding=3D0>
    <TBODY>
    <TR>
      <TD class=3D"catmenutitle biomedicali-menu" id=3Dbiomedicali><A=20
        class=3Dmenuitem=20
      href=3D"indicatori.phtml?cat=3Dbiomedicali/">Biomedicali</A></TD>
      <TD class=3D"catmenutitle presidi-menu" id=3Dpresidi><A =
class=3Dmenuitem=20
        href=3D"indicatori.phtml?cat=3Dpresidi/">Presidi</A></TD>
      <TD class=3D"catmenutitle selected consumabili-menu"=20
        id=3Dconsumabili>Consumabili</TD>
      <TD class=3D"catmenutitle servizi-menu" id=3Dservizi><A =
class=3Dmenuitem=20
        =
href=3D"indicatori.phtml?cat=3Dservizi/">Servizi</A></TD></TR></TBODY></T=
ABLE>
  <TABLE class=3D"subcatmenu consumabili-menu" cellSpacing=3D0 =
cellPadding=3D8=20
  width=3D"100%">
    <TBODY>
    <TR>
      <TD noWrap><A class=3Dsubcatmenuitem=20
        =
href=3D"indicatori.phtml?cat=3Dconsumabili/C_RAD"><EM>Pellicole</EM></A><=
/TD>
      <TD noWrap><A class=3Dsubcatmenuitem=20
        href=3D"indicatori.phtml?cat=3Dconsumabili/C_FIL">Materiale per=20
      Dialisi</A></TD>
      <TD noWrap><A class=3Dsubcatmenuitem=20
        href=3D"indicatori.phtml?cat=3Dconsumabili/C_MC">Mezzi di =
Contrasto</A></TD>
      <TD width=3D"100%">&nbsp;</TD></TR></TBODY></TABLE></DIV>
  <DIV id=3Dcontent>
  <DIV class=3Dindicatore>
  <H2>INCIDENZA DI SPESA SUL TOTALE BENI E SERVIZI </H2>
  <H3><SPAN xmlns:xsp=3D"http://apache.org/xsp"=20
  xmlns:xspdoc=3D"http://apache.org/cocoon/XSPDoc/v1"=20
  xmlns:esql=3D"http://apache.org/cocoon/SQL/v2"=20
  xmlns:session=3D"http://apache.org/xsp/session/2.0"=20
  xmlns:bpadecode=3D"http://bpa.cbim.it/2001/xsp/decode/1.0"=20
  xmlns:xsp-request=3D"http://apache.org/xsp/request/2.0">Tipologia di =
prodotto:=20
  PELLICOLE RADIOGRAFICHE<BR></SPAN><SPAN =
xmlns:xsp=3D"http://apache.org/xsp"=20
  xmlns:xspdoc=3D"http://apache.org/cocoon/XSPDoc/v1"=20
  xmlns:esql=3D"http://apache.org/cocoon/SQL/v2"=20
  xmlns:session=3D"http://apache.org/xsp/session/2.0"=20
  xmlns:bpadecode=3D"http://bpa.cbim.it/2001/xsp/decode/1.0"=20
  xmlns:xsp-request=3D"http://apache.org/xsp/request/2.0">Ente: A.O.=20
  MACCHI<BR></SPAN><SPAN xmlns:xsp=3D"http://apache.org/xsp"=20
  xmlns:xspdoc=3D"http://apache.org/cocoon/XSPDoc/v1"=20
  xmlns:esql=3D"http://apache.org/cocoon/SQL/v2"=20
  xmlns:session=3D"http://apache.org/xsp/session/2.0"=20
  xmlns:bpadecode=3D"http://bpa.cbim.it/2001/xsp/decode/1.0"=20
  xmlns:xsp-request=3D"http://apache.org/xsp/request/2.0">Anno di =
riferimento:=20
  2000</SPAN> </H3>
  <TABLE class=3Dindicatore cellSpacing=3D0>
    <CAPTION></CAPTION>
    <TBODY>
    <TR>
      <TH>Ente</TH>
      <TH>Importo Complessivo di Aggiudicazione (IVA compresa) =
[Lire]</TH>
      <TH>Spesa per Beni e Servizi [Lire]</TH>
      <TH>Incidenza</TH></TR>
    <TR>
      <TD width=3D"25%">A.O. MACCHI</TD>
      <TD class=3Dlit width=3D"30%" name=3D"imptot">6.990.259.140</TD>
      <TD class=3Dlit width=3D"30%">181.330.000.000</TD>
      <TD class=3Dlit=20
width=3D"15%">3,855%</TD></TR></TBODY></TABLE></DIV></DIV></BLOCKQUOTE></=
BODY></HTML>

------=_NextPart_000_0006_01C1C20B.80E9CF80--