Open seanmavley opened 8 years ago
bug confirmed. bug seems to be isolated to datalist
element which is weird.
added to my todo-when-not-busy list. thx.
Turns out problem is fairly deep, stemming from using jsdom-little
which is based on an old fork of jsdom
and lacks definitions for datalist
tag.
Switching to latest jsdom
does fix the bug but has hard to ignore negative side-effects like:
head
element when not present in HTMLOption A: patch jsdom-little
to support missing elements. Putting time I don't have into legacy code seems like a waste. So, unless I get a PR, this option is not looking good.
Option B: patch 'jsdom'. This may be worth doing except I don't have the time at the moment.
Deferred for now.
Until it gets fixed, I think its only as easy as just indenting the datalist part after the conversion, as it happens to be the only tag element not converting properly. Thanks for looking into the issue.
This is what I get:
When I put in this:
However, the correct rendering should be
The
select
needs to be indented to make the datalist work, otherwise, theselect
creates a separate input field when rendered.Forgive me if the issue is with http://html2jade.org, though it points back to this repo