html2purescript icon indicating copy to clipboard operation
html2purescript copied to clipboard

Parse error in html tags without closing tag

Open flip111 opened this issue 5 years ago • 4 comments

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" ] ]

flip111 avatar Feb 07 '20 01:02 flip111

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.

maackle avatar Feb 07 '20 04:02 maackle

ya no worries, i just wanted it cataloged somewhere what possible improvements might be

flip111 avatar Feb 07 '20 11:02 flip111

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.

flip111 avatar Feb 07 '20 11:02 flip111

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.

maackle avatar Feb 07 '20 20:02 maackle