diff --git a/Lib/HTMLParser.py b/Lib/HTMLParser.py
index bd6a885fcb2..908b30ebd03 100644
--- a/Lib/HTMLParser.py
+++ b/Lib/HTMLParser.py
@@ -148,8 +148,6 @@ class HTMLParser(markupbase.ParserBase):
k = self.parse_starttag(i)
elif startswith("", i):
k = self.parse_endtag(i)
- if k >= 0:
- self.clear_cdata_mode()
elif startswith("