You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently compiler doesn't allow nesting <table> and <p> elements inside other <p> elements as per HTML standard. But instead of showing a warning or error it just renders unexpected html:
<p><table/></p>
gets rendered as:
<p></p><table/><p></p>
Link to Minimal Reproducible Example
N / A
The text was updated successfully, but these errors were encountered:
This is the excepted behaviour. P tags get auto closed and they are added as siblings. Any online HTML Editor as well as web servers do the same, and will output the same.
Even the HTML Standard states that P tags do not have to be closed if they are followed by specific tags - including Table - and will get auto closed.
When trying to reproduce this issue, this was the output I got:
<p><table></table></p>
I believe this is the expected output. We don't show warnings/errors for invalid markup. If invalid, the compiler tries to correct the markup following the html standard.
What version of
@astrojs/compiler
are you using?1.0.0-beta.47
What package manager are you using?
pnpm
What operating system are you using?
Fedora Linux
Describe the Bug
Currently compiler doesn't allow nesting
<table>
and<p>
elements inside other<p>
elements as per HTML standard. But instead of showing a warning or error it just renders unexpected html:gets rendered as:
Link to Minimal Reproducible Example
N / A
The text was updated successfully, but these errors were encountered: