PDA

View Full Version : Error in sgmlParser(1.8.4)



tor
09-14-2009, 08:43 AM
When parsing the following html, sgmlParser(1.8.4) replaces "&part=sports" in the link with "∂sports".

before:

<?xml version="1.0" encoding="utf-8"?>
<html><head><title>Title</title></head><body onload=""><a href="broadcast.php?matchid=48619&part=sports"></a></body></html>

after:

<?xml version="1.0" encoding="utf-8"?>
<html><head><title>Title</title></head><body onload=""><a href="broadcast.php?matchid=48619∂sports"></a></body></html>

I think the problem is related to the statement on line 2089 in SgmlReader.cs. Commenting the 'if clause' out solves this problem, but might have unforeseen consequences.
(It probably does, as I have no idea what this statement was meant to accomplish).

SteveB
09-14-2009, 11:32 PM
There is an 1.8.5 version of sgml reader that was created a couple of months ago, but we forgot to update the main page for it.

http://viewvc.mindtouch.com/public/sgmlreader/1.8.5/

It's possible that it addresses your issue already. Let me know!