From fff865a98aa288930d6e363f03ad57570e429e92 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 30 Nov 2021 18:39:22 +0100 Subject: spans: support attribute values --- tests/span-tests/demo.html | 2 ++ tests/span-tests/demo.out | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'tests') 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:

test

tags can have attributes:
+ +Attribute values can be quoted: 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:

test

- │ ^^^^^^ ^^ ^^ end tag - │ │ │ - │ │ start tag - │ attr value + │ ^^ ^^ end tag + │ │ + │ start tag 2 │ 3 │ tags can have attributes:
- │ ^^ attr name + │ ^^ ^^^^^^ attr value + │ │ + │ attr name +4 │ +5 │ Attribute values can be quoted: + │ ^^^^ ^^^ ^^^^ ^^^^^^ attr value + │ │ │ │ + │ │ │ attr name + │ │ attr value + │ attr name -- cgit v1.2.3