diff options
| author | Martin Fischer <martin@push-f.com> | 2021-11-30 18:39:22 +0100 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2021-12-05 02:52:36 +0100 | 
| commit | fff865a98aa288930d6e363f03ad57570e429e92 (patch) | |
| tree | a0cf87f5cb3eb7d285ea4085a3d322a655b27758 /tests/span-tests | |
| parent | 76408590349f7f132c1dfeb9db3fb1dea964227c (diff) | |
spans: support attribute values
Diffstat (limited to 'tests/span-tests')
| -rw-r--r-- | tests/span-tests/demo.html | 2 | ||||
| -rw-r--r-- | tests/span-tests/demo.out | 18 | 
2 files changed, 15 insertions, 5 deletions
| diff --git a/tests/span-tests/demo.html b/tests/span-tests/demo.html index 53bbab2..c635846 100644 --- a/tests/span-tests/demo.html +++ b/tests/span-tests/demo.html @@ -1,3 +1,5 @@  this is a tag: <h1>test</h1>  tags can have attributes: <div id = foobar> + +Attribute values can be quoted: <input name = 'age' type = "number"> diff --git a/tests/span-tests/demo.out b/tests/span-tests/demo.out index 2b69ce5..156247e 100644 --- a/tests/span-tests/demo.out +++ b/tests/span-tests/demo.out @@ -2,10 +2,18 @@ note:    ┌─ test.html:1:1    │  1 │ this is a tag: <h1>test</h1> -  │ ^^^^^^          ^^       ^^ end tag -  │ │               │ -  │ │               start tag -  │ attr value +  │                 ^^       ^^ end tag +  │                 │ +  │                 start tag  2 │  3 │ tags can have attributes: <div id = foobar> -  │                                ^^ attr name +  │                                ^^   ^^^^^^ attr value +  │                                │ +  │                                attr name +4 │ +5 │ Attribute values can be quoted: <input name = 'age' type = "number"> +  │                                        ^^^^   ^^^   ^^^^   ^^^^^^ attr value +  │                                        │      │     │ +  │                                        │      │     attr name +  │                                        │      attr value +  │                                        attr name | 
