Index: packages/html/test/data/tokenizer/xmlViolation.test |
diff --git a/packages/html/test/data/tokenizer/xmlViolation.test b/packages/html/test/data/tokenizer/xmlViolation.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..137d964295dfe0b8c9331e87073befbecf54c634 |
--- /dev/null |
+++ b/packages/html/test/data/tokenizer/xmlViolation.test |
@@ -0,0 +1,22 @@ |
+{"xmlViolationTests": [ |
+ |
+{"description":"Non-XML character", |
+"input":"a\uFFFFb", |
+"ignoreErrorOrder":true, |
+"output":["ParseError",["Character","a\uFFFDb"]]}, |
+ |
+{"description":"Non-XML space", |
+"input":"a\u000Cb", |
+"ignoreErrorOrder":true, |
+"output":[["Character","a b"]]}, |
+ |
+{"description":"Double hyphen in comment", |
+"input":"<!-- foo -- bar -->", |
+"output":["ParseError",["Comment"," foo - - bar "]]}, |
+ |
+{"description":"FF between attributes", |
+"input":"<a b=''\u000Cc=''>", |
+"output":[["StartTag","a",{"b":"","c":""}]]} |
+]} |
+ |
+ |