Skip to content

Commit

Permalink
corpus/css: add a test for a self-closing style tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vrischmann committed Jan 7, 2024
1 parent f8fbc15 commit 78b6cc4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions corpus/css.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,28 @@ templ Foobar() {
(element_text)
(tag_end
name: (element_identifier))))))

===
Self closing style tag
===

package main

templ Foobar() {
<style src="/app.js" />
}

---

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

0 comments on commit 78b6cc4

Please sign in to comment.