html2purescript
html2purescript copied to clipboard
Parse error in html tags without closing tag
For example https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input
<input type="text" id="name" name="name" required minlength="4" maxlength="8" size="10">
Result
Expected EOF
But with closing slash (not required in html, but optional)
<input type="text" id="name" name="name" required minlength="4" maxlength="8" size="10" />
Result
[ HH.input [ HP.type "text", HP.id_ "name", HP.name "name", HP.required "", HP.minlength "4", HP.maxlength "8", HP.size "10" ] ]
Thank you for all the suggestions, they're all good ideas. I wrote this tool as a simple way to bootstrap Purescript UIs from existing HTML, and it is certainly not robust or complete. I don't intend to maintain this repo any further.
ya no worries, i just wanted it cataloged somewhere what possible improvements might be
Maybe you can reopen this issue so it's easier to see it's still relevant. And instead put in the readme that this project is unmaintained.
Good idea, I updated the README. And I guess these are all issues even if I'm not going to fix them, so I'll reopen.