Re: Tidy bug

Ben McCann <[email protected]> Fri, 6 Nov 2009 13:35:24 -0800
Newsgroups gmane.comp.web.html-tidy.devel
Message-ID <[email protected]>
--===============7841594282777978135==
Content-Type: multipart/alternative; boundary=000e0cd299e8248c4a0477ba9f48

--000e0cd299e8248c4a0477ba9f48
Content-Type: text/plain; charset=ISO-8859-1

Unfortunately the bug fix for the earlier issue hasn't totally solved my
problem.  Here's a new bug report I filed with
jtidy<https://sourceforge.net/tracker/?func=detail&atid=113153&aid=2892958&group_id=13153>.
 Consider the page below. Tidy inserts a <table> tag when it reaches
the unexpected <tr>. This causes it to discard the existing <table> and
the resulting page has lost the id attribute. A better behavior would be
to insert a new end tag instead of discarding the existing start tag.

<html>
<body>
<tr></tr>
<table id="companyAccountsTable">
<tbody><tr><td>jschmoe</td></tr></tbody>
</table>
</body>
</html>

Thanks,
Ben


On Tue, Oct 27, 2009 at 1:12 PM, Ben McCann <[email protected]> wrote:

> Awesome.  Thanks a million!
>
>
> On Tue, Oct 27, 2009 at 12:32 PM, Klaus Johannes Rusch <
> [email protected]> wrote:
>
>> Ben McCann wrote:
>>
>>> Thanks a lot for the patch Klaus.  Is this something that we'd be able to
>>> submit to CVS?
>>>
>> Done!  Thanks for the gentle reminder, still struggling with build and cvs
>> since upgrading to a new computer (why don't all the tweaks automatically
>> find their way to the new machine!)
>>
>> --
>> Klaus Johannes Rusch
>>
>> [email protected]
>> http://www.atmedia.net/KlausRusch/
>>
>>
>

--000e0cd299e8248c4a0477ba9f48
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>Unfortunately the bug fix for the earlier issue hasn&#39;t totally sol=
ved my problem. =A0Here&#39;s a <a href=3D"https://sourceforge.net/tracker/=
?func=3Ddetail&amp;atid=3D113153&amp;aid=3D2892958&amp;group_id=3D13153">ne=
w bug report I filed with jtidy</a>. =A0Consider the page below. Tidy inser=
ts a &lt;table&gt; tag when it reaches the=A0unexpected &lt;tr&gt;. This ca=
uses it to discard the existing &lt;table&gt; and the=A0resulting page has =
lost the id attribute. A better behavior would be to=A0insert a new end tag=
 instead of discarding the existing start tag.</div>
<div><br></div><div>&lt;html&gt;</div><div>&lt;body&gt;</div><div>&lt;tr&gt=
;&lt;/tr&gt;</div><div>&lt;table id=3D&quot;companyAccountsTable&quot;&gt;<=
/div><div>&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;jschmoe&lt;/td&gt;&lt;/tr&gt;&lt=
;/tbody&gt;</div>
<div>&lt;/table&gt;</div><div>&lt;/body&gt;</div><div>&lt;/html&gt;</div><d=
iv><br></div><div>Thanks,</div><div>Ben</div><br><br><div class=3D"gmail_qu=
ote">On Tue, Oct 27, 2009 at 1:12 PM, Ben McCann <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:[email protected]">[email protected]</a>&gt;</span> wrote:<br=
>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">Awesome. =A0Thanks a million!<div><div></di=
v><div class=3D"h5"><br><br><div class=3D"gmail_quote">On Tue, Oct 27, 2009=
 at 12:32 PM, Klaus Johannes Rusch <span dir=3D"ltr">&lt;<a href=3D"mailto:=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</s=
pan> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div>Ben McCann wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Thanks a lot for the patch Klaus. =A0Is this something that we&#39;d be abl=
e to submit to CVS?<br>
</blockquote></div>
Done! =A0Thanks for the gentle reminder, still struggling with build and cv=
s since upgrading to a new computer (why don&#39;t all the tweaks automatic=
ally find their way to the new machine!)<br>
<br>
-- <br><font color=3D"#888888">
Klaus Johannes Rusch</font><div><div></div><div><br>
<a href=3D"mailto:[email protected]" target=3D"_blank">KlausRusch@atme=
dia.net</a><br>
<a href=3D"http://www.atmedia.net/KlausRusch/" target=3D"_blank">http://www=
.atmedia.net/KlausRusch/</a><br>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>

--000e0cd299e8248c4a0477ba9f48--


--===============7841594282777978135==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
--===============7841594282777978135==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tidy-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tidy-develop

--===============7841594282777978135==--