What version of @astrojs/compiler-rs are you using?
0.2.2
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
Summary
parser does not handle HTML optional end tags such as <p>one<p>two.
It requires an explicit closing tag for not void elements such as p, ul, select, table
<p>one<p>two
<ul><li>one<li>two</ul>
<select><option>A<option>B</select>
<table><tr><td>A<td>B<tr><td>C</table>
Repro
Expected
It should infer the first </p> before the second <p> or produce AST to two sibling paragraphs.
Link to Minimal Reproducible Example
https://ast-explorer.dev/#eNpVUEtuxSAMvApi8zZFqLuqIpHac7Ch4DZIxETgJqqi3L0OL3mfFWOPZxjNKpN8l65SyfJFTidWPo9TTFBUqbz3vFdKWfQZKwmKlEB04vKx34pPV6OvF4vtxAw0JpEc/nRWAlrZWxTCDOBCQ4xHICf84EoF4qNf+lZvVgr9xKMbgck5wjLlQszz5wS4K5YYaOgCzNGDasOjvMXr1/ZsRl/HFkLfUpivHP5OQYjzAfegr3cp43PPzNRnhKeZlnxY6NPD6MOZ1VwEA+4vc3/rJrd/zHJyag==
What version of
@astrojs/compiler-rsare you using?0.2.2
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
Summary
parser does not handle HTML optional end tags such as
<p>one<p>two.It requires an explicit closing tag for not void elements such as
p,ul,select,table<p>one<p>two<ul><li>one<li>two</ul><select><option>A<option>B</select><table><tr><td>A<td>B<tr><td>C</table>Repro
Expected
It should infer the first
</p>before the second<p>or produce AST to two sibling paragraphs.Link to Minimal Reproducible Example
https://ast-explorer.dev/#eNpVUEtuxSAMvApi8zZFqLuqIpHac7Ch4DZIxETgJqqi3L0OL3mfFWOPZxjNKpN8l65SyfJFTidWPo9TTFBUqbz3vFdKWfQZKwmKlEB04vKx34pPV6OvF4vtxAw0JpEc/nRWAlrZWxTCDOBCQ4xHICf84EoF4qNf+lZvVgr9xKMbgck5wjLlQszz5wS4K5YYaOgCzNGDasOjvMXr1/ZsRl/HFkLfUpivHP5OQYjzAfegr3cp43PPzNRnhKeZlnxY6NPD6MOZ1VwEA+4vc3/rJrd/zHJyag==