summaryrefslogtreecommitdiffstats
path: root/Lib/_markupbase.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-12-19 05:29:03 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-12-19 05:29:03 (GMT)
commit62f3d0300ebfd00167d7221153c3ddb7accd4cbd (patch)
tree34da424cc269c36d16dbc1d263323dc0f20d87c4 /Lib/_markupbase.py
parent80a61e8d4c551367d288d880d9d59e7e5cf35074 (diff)
downloadcpython-62f3d0300ebfd00167d7221153c3ddb7accd4cbd.zip
cpython-62f3d0300ebfd00167d7221153c3ddb7accd4cbd.tar.gz
cpython-62f3d0300ebfd00167d7221153c3ddb7accd4cbd.tar.bz2
#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 98b9037..2af5f1c 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 "\"'":