summaryrefslogtreecommitdiff
path: root/Lib/_markupbase.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-12-19 07:29:03 +0200
committerEzio Melotti <ezio.melotti@gmail.com>2011-12-19 07:29:03 +0200
commitc2dcad8d3badc78904f4f1cf014d3c2ad45dab29 (patch)
tree557a99b869523201f4c3d30c84b41c41208acd3f /Lib/_markupbase.py
parentde62cc8b6d9377968e86711574f59dc812f58ab1 (diff)
downloadcpython-c2dcad8d3badc78904f4f1cf014d3c2ad45dab29.tar.gz
#13576: add tests about the handling of (possibly broken) condcoms.
Diffstat (limited to 'Lib/_markupbase.py')
-rw-r--r--Lib/_markupbase.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/_markupbase.py b/Lib/_markupbase.py
index 98b9037aff..2af5f1c23b 100644
--- a/Lib/_markupbase.py
+++ b/Lib/_markupbase.py
@@ -107,6 +107,10 @@ class ParserBase:
if decltype == "doctype":
self.handle_decl(data)
else:
+ # According to the HTML5 specs sections "8.2.4.44 Bogus
+ # comment state" and "8.2.4.45 Markup declaration open
+ # state", a comment token should be emitted.
+ # Calling unknown_decl provides more flexibility though.
self.unknown_decl(data)
return j + 1
if c in "\"'":