Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the 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
htmaway using this script.shell script
Expected: Transpilation should fail with an error.
Actual: The
htmlline 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.)