[Python-checkins] r46944 - python/trunk/Lib/sgmllib.py

fred.drake python-checkins at python.org
Wed Jun 14 07:15:51 CEST 2006


Author: fred.drake
Date: Wed Jun 14 07:15:51 2006
New Revision: 46944

Modified:
   python/trunk/Lib/sgmllib.py
Log:
explain an XXX in more detail

Modified: python/trunk/Lib/sgmllib.py
==============================================================================
--- python/trunk/Lib/sgmllib.py	(original)
+++ python/trunk/Lib/sgmllib.py	Wed Jun 14 07:15:51 2006
@@ -246,6 +246,9 @@
             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


More information about the Python-checkins mailing list