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
In this case, the user intended to include a closing tag </h1>, and so the user's desired logged result is {"type":"h1","props":null,"children":["Hello, world!"]}
Consider this sample code, which accidentally omits a closing tag.
In this case, the user intended to include a closing tag
</h1>
, and so the user's desired logged result is{"type":"h1","props":null,"children":["Hello, world!"]}
Transpile
htm
away using this script.shell script
Expected: Transpilation should fail with an error.
Actual: The
html
line transpiles to:The
<h1>
tag is silently dropped.(Note that this error behavior is different from the runtime behavior of htm with mismatching closing tags; see issue #166.)
The text was updated successfully, but these errors were encountered: