Skip to content

missing end of a HTML tag results in Server error without description what is the problem #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
forgie1 opened this issue Feb 9, 2023 · 0 comments

Comments

@forgie1
Copy link

forgie1 commented Feb 9, 2023

Version: 3.0.5

Bug Description

<td><a href="mailto:{$owner->getEmail()}" {$owner->getEmail()}</td>
Ends with:
Latte\CompileException
Thrown exception 'Call to a member function isEnd() on null' (in '....latte')

in file:
\vendor\latte\latte\src\Latte\Compiler\TemplateParser.php:89

83:        public function parseFragment(callable $resolver, callable $after = null): FragmentNode
84:        {
85:            $res = new FragmentNode;
86:            $save = [$this->lastResolver, $this->tag];
87:            $this->lastResolver = $resolver;
88:            try {
89:                while (!$this->stream->peek()->isEnd()) {

Expected Behavior

It would be nice if message of the server error would have description that end <a> tag is missing in the specified template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant