Skip to content

Commit

Permalink
fix: allow attributes to be prefixed with @
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Jul 6, 2024
1 parent fa3f0c6 commit c567cbb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,15 @@ public function testRenderingHtmlSyntaxComponentWithNestedAttributes(): void

$output = self::getContainer()
->get(Environment::class)
->createTemplate('<twig:NestedAttributes class="foo" title:class="bar" title:span:class="baz" inner:class="foo" />')
->createTemplate('<twig:NestedAttributes class="foo" title:class="bar" title:span:class="baz" inner:class="foo" inner:@class="qux" @class="vex" />')
->render()
;

$this->assertSame(<<<HTML
<main class="foo">
<main class="foo" @class="vex">
<div class="bar">
<span class="baz">
<div class="foo"/>
<div class="foo" @class="qux"/>
</span>
</div>
Expand Down

0 comments on commit c567cbb

Please sign in to comment.