We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InvalidClosingTag
1 parent 0306cbd commit 8477178Copy full SHA for 8477178
packages/view/tests/TempestViewParserTest.php
@@ -76,6 +76,24 @@ public function test_invalid_closing_tag(): void
76
new TempestViewParser($tokens)->parse();
77
}
78
79
+ public function test_invalid_closing_tag_ignores_commented_out_code(): void
80
+ {
81
+ $tokens = new TempestViewLexer(<<<HTML
82
+ <h1>
83
+ <!-- <svg>
84
+ </svg> -->
85
+ </h1>
86
+ HTML)->lex();
87
+
88
+ $compiled = new TempestViewParser($tokens)->parse()->compile();
89
+ $this->assertSame(<<<HTML
90
91
+ <!-- <svg xmlns="http://www.w3.org/2000/svg">
92
93
94
+ HTML, $compiled);
95
+ }
96
97
public function test_doctype(): void
98
{
99
$tokens = new TokenCollection([
0 commit comments