Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 570764d commit 30d59baCopy full SHA for 30d59ba
1 file changed
Lib/HTMLParser.py
@@ -148,8 +148,6 @@ def goahead(self, end):
148
k = self.parse_starttag(i)
149
elif startswith("</", i):
150
k = self.parse_endtag(i)
151
- if k >= 0:
152
- self.clear_cdata_mode()
153
elif startswith("<!--", i):
154
k = self.parse_comment(i)
155
elif startswith("<?", i):
@@ -329,6 +327,7 @@ def parse_endtag(self, i):
329
327
self.error("bad end tag: %s" % `rawdata[i:j]`)
330
328
tag = match.group(1)
331
self.handle_endtag(tag.lower())
+ self.clear_cdata_mode()
332
return j
333
334
# Overridable -- finish processing of start+end tag: <tag.../>
0 commit comments