Skip to content

Commit

Permalink
corpus: add a single test for a self-closing tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vrischmann committed Jan 6, 2024
1 parent 64f3ded commit f8fbc15
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions corpus/components.txt
Original file line number Diff line number Diff line change
Expand Up @@ -819,3 +819,30 @@ templ Example() {
(interpreted_string_literal)))
(tag_end
name: (element_identifier))))))

===
Self closing tag
===

package main

templ Foobar() {
<input type="text"/>
}

---

(source_file
(package_clause
(package_identifier))
(component_declaration
name: (component_identifier)
(parameter_list)
(component_block
(element
(self_closing_tag
name: (element_identifier)
(attribute
name: (attribute_name)
value: (quoted_attribute_value
(attribute_value))))))))

0 comments on commit f8fbc15

Please sign in to comment.