mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
explain an XXX in more detail
This commit is contained in:
parent
a16393efb7
commit
6ce9fe880b
1 changed files with 3 additions and 0 deletions
|
@ -246,6 +246,9 @@ class SGMLParser(markupbase.ParserBase):
|
||||||
self.__starttag_text = rawdata[start_pos:match.end(1) + 1]
|
self.__starttag_text = rawdata[start_pos:match.end(1) + 1]
|
||||||
return k
|
return k
|
||||||
# XXX The following should skip matching quotes (' or ")
|
# 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)
|
match = endbracket.search(rawdata, i+1)
|
||||||
if not match:
|
if not match:
|
||||||
return -1
|
return -1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue