From: Fred Drake Date: Wed, 14 Jun 2006 05:15:51 +0000 (+0000) Subject: explain an XXX in more detail X-Git-Tag: v2.5b1~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ce9fe880be7416d88e6d800528db4079db6d6b1;p=thirdparty%2FPython%2Fcpython.git explain an XXX in more detail --- diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 3e85a910e049..27352a1adf46 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -246,6 +246,9 @@ class SGMLParser(markupbase.ParserBase): self.__starttag_text = rawdata[start_pos:match.end(1) + 1] return k # XXX The following should skip matching quotes (' or ") + # As a shortcut way to exit, this isn't so bad, but shouldn't + # be used to locate the actual end of the start tag since the + # < or > characters may be embedded in an attribute value. match = endbracket.search(rawdata, i+1) if not match: return -1