also looking at this
fix(conditionals): don't match directive tokens inside HTML tags
#1779@if corrupts the rendered template — content after the inner block and the outer boundaries.Fix
Directive tokens only ever occur in text content, never inside a <...> tag. Add isInsideTag() and skip tag-interior @if/ in the branch scanner so the signal and conditional passes agree on what is a directive.
Tests
Adds regression tests (two-pass signal→conditionals) for both outer branches, an inner reactive @elseif chain, plus guards that normal server nesting and a directive @else right after a closing tag still work. Existing conditionals + parser + signal suites all green (871 pass / 0 fail); lint + typecheck clean.
Found while building nested owner-vs-share-mode conditionals in a downstream app (ghostanalytics dashboard).
2 changed files on the files tab, with 0 review threads.
Sign in to comment on this pull request.
@endifChecks
Nothing has reported on this commit
Nothing has reported on this commit.
No checks are required on this branch, so none of this blocks a merge.
Tests
No test results reported for this commit
Nothing has reported test results for this commit.