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
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:
auto-insertion of empty head element when not present in HTML
conditional comments get evaluted, removing contents for failed conditions.
#1 is not serious but #2 is. And there may be other side-effects I overlooked.
Option 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.
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
The text was updated successfully, but these errors were encountered: