]> granicus.if.org Git - python/commitdiff
explain an XXX in more detail
authorFred Drake <fdrake@acm.org>
Wed, 14 Jun 2006 05:15:51 +0000 (05:15 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 14 Jun 2006 05:15:51 +0000 (05:15 +0000)
Lib/sgmllib.py

index 3e85a910e049809a7a580bda779ce8c58af9e43d..27352a1adf46ca841f395059067538d028e70fca 100644 (file)
@@ -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