1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
source: tests/source_span.rs
assertion_line: 14
expression: dom
---
Dom {
tree_type: DocumentFragment,
children: [
Element(
Element {
name: "template",
variant: Normal,
attributes: {},
classes: [],
children: [
Element(
Element {
name: "h1",
variant: Normal,
attributes: {},
classes: [],
children: [
Text(
"Header",
),
],
source_span: SourceSpan {
text: "<h1>Header</h1>",
start_line: 2,
end_line: 2,
start_column: 5,
end_column: 20,
},
},
),
Element(
Element {
name: "p",
variant: Normal,
attributes: {},
classes: [],
children: [
Text(
"Paragraph",
),
],
source_span: SourceSpan {
text: "<p>Paragraph</p>",
start_line: 3,
end_line: 3,
start_column: 5,
end_column: 21,
},
},
),
],
source_span: SourceSpan {
text: "<template>\n <h1>Header</h1>\n <p>Paragraph</p>\n</template>",
start_line: 1,
end_line: 4,
start_column: 1,
end_column: 12,
},
},
),
],
warnings: [],
}