diff options
author | Fred Drake <fdrake@acm.org> | 2006-06-14 05:15:51 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2006-06-14 05:15:51 (GMT) |
commit | 6ce9fe880be7416d88e6d800528db4079db6d6b1 (patch) | |
tree | c4fd9189fb245885f86a76024fad112c875198f9 /Lib/sgmllib.py | |
parent | a16393efb779b62f9114c06852947e92dd9d155f (diff) | |
download | cpython-6ce9fe880be7416d88e6d800528db4079db6d6b1.zip cpython-6ce9fe880be7416d88e6d800528db4079db6d6b1.tar.gz cpython-6ce9fe880be7416d88e6d800528db4079db6d6b1.tar.bz2 |
explain an XXX in more detail
Diffstat (limited to 'Lib/sgmllib.py')
-rw-r--r-- | Lib/sgmllib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 3e85a91..27352a1 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 |