Subscribe on changes!

Missing closing tag is parsed incorrectly

avatar
Jun 16th 2021

Version

3.1.1

Sample Inputs

<div><div</div>
<div><div </div>

When closing brace of open tag is missing, compiler treats next < as attribute.

What is expected?

Compiler should stop open tag parsing when < is encountered.

What is actually happening?

Parsing closing tag as attribute.


Such incomplete states are common occurrence in IDEs.

avatar
Jun 16th 2021

Also <> in <div><></div> is parsed as text node.