summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2021-07-17 14:06:49 -0400
committerNick Wellnhofer <wellnhofer@aevum.de>2022-03-02 14:42:47 +0000
commit24cdc89006a49ebda93a6c9301f7fe07f353f40e (patch)
tree03f45089ce7aab627b1858b90254e0f360f74536 /test
parent2fe372a0aa2cdeb5cf518cf430defba36647c502 (diff)
downloadlibxml2-24cdc89006a49ebda93a6c9301f7fe07f353f40e.tar.gz
test coverage for abruptly-closed comments
These establish baseline behavior so that the subsequent commit is clear about the behavior it will modify.
Diffstat (limited to 'test')
-rw-r--r--test/HTML/comments3.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/HTML/comments3.html b/test/HTML/comments3.html
new file mode 100644
index 00000000..327633e7
--- /dev/null
+++ b/test/HTML/comments3.html
@@ -0,0 +1,17 @@
+<html>
+ <body>
+ <div>
+ <h3>
+ <a href="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-abrupt-closing-of-empty-comment">
+ Abruptly closed comment
+ </a>
+ </h3>
+ <div>
+ <!-->the previous node should be an empty comment, and this should be a text node-->
+ </div>
+ <div>
+ <!--->the previous node should be an empty comment, and this should be a text node-->
+ </div>
+ </div>
+ </body>
+</html>