[Patches] [ python-Patches-1087808 ] sgmllib.SGMLParser does not
unescape attribute values; patch
SourceForge.net
noreply at sourceforge.net
Sun Dec 19 06:42:20 CET 2004
Patches item #1087808, was opened at 2004-12-18 21:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1087808&group_id=5470
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Titus Brown (titus)
Assigned to: Nobody/Anonymous (nobody)
Summary: sgmllib.SGMLParser does not unescape attribute values; patch
Initial Comment:
for example, in a form parsed by htmllib.HTMLParser (based on
SGMLParser),
<option value="5" big"> 5" big
the value will not be unescaped to 5" while the printed
option will be.
Note that this behavior differs from that of
HTMLParser.HTMLParser, which does a fine job.
See attached test script/test input for an example.
See attached patch for a fix: essentially I copied the code directly
from HTMLParser.HTMLParser.
I don't think this patch should break anything; I can't imagine
people were relying on this behavior!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1087808&group_id=5470
More information about the Patches
mailing list