aboutsummaryrefslogtreecommitdiff
path: root/tests/files
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files')
-rw-r--r--tests/files/test.html4
-rw-r--r--tests/files/test.out38
2 files changed, 26 insertions, 16 deletions
diff --git a/tests/files/test.html b/tests/files/test.html
index 0dcbdbf..14493b7 100644
--- a/tests/files/test.html
+++ b/tests/files/test.html
@@ -5,3 +5,7 @@ Here is a tag: <strong >very cool</strong>
Tags can have attributes: <div id = foo >...</div>
Attribute values can be quoted: <input name = 'age' type = "number">
+
+This is malformed < test
+
+Characters can be escaped but don't forget the semicolon: &#182
diff --git a/tests/files/test.out b/tests/files/test.out
index 7127ebc..f5acb3e 100644
--- a/tests/files/test.out
+++ b/tests/files/test.out
@@ -1,17 +1,23 @@
note:
- ┌─ test.html:3:17
- │
-3 │ Here is a tag: <strong >very cool</strong>
- │ ^^^^^^ ^^^^^^ EndTag
- │ │
- │ StartTag
-4 │
-5 │ Tags can have attributes: <div id = foo >...</div>
- │ ^^ ^^^ attribute value
- │ │
- │ attribute name
-6 │
-7 │ Attribute values can be quoted: <input name = 'age' type = "number">
- │ ^^^ ^^^^^^ in double quotes
- │ │
- │ in single quotes
+ ┌─ test.html:3:17
+ │
+ 3 │ Here is a tag: <strong >very cool</strong>
+ │ ^^^^^^ ^^^^^^ EndTag
+ │ │
+ │ StartTag
+ 4 │
+ 5 │ Tags can have attributes: <div id = foo >...</div>
+ │ ^^ ^^^ attribute value
+ │ │
+ │ attribute name
+ 6 │
+ 7 │ Attribute values can be quoted: <input name = 'age' type = "number">
+ │ ^^^ ^^^^^^ in double quotes
+ │ │
+ │ in single quotes
+ 8 │
+ 9 │ This is malformed < test
+ │ ^ unexpected character: saw ' ' in state TagOpen
+10 │
+11 │ Characters can be escaped but don't forget the semicolon: &#182
+ │ ^ semicolon missing after character reference