The following examples compiles but creates warnings just when the float
parameter is used.
\documentclass{article}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[float, language=tex, label=lst-enum, caption={Enumerated list.}]
\begin{enumerate}
\item example 1
\item example 2
\item example 3
\end{enumerate}
\end{lstlisting}
\end{document}
I'm compiling with make4ht
and the warning generated are:
[WARNING] domfilter: DOM parsing of article.html failed:
[WARNING] domfilter: .../texlive/texmf-dist/tex/luatex/luaxml/luaxml-mod-xml.lua:175: Unbalanced Tag (/figure) [char=1997]
Is there something wrong or a way to avoid these warnings? Could it lead to a crash in a more complex example?