---- On Mon, 16 Mar 2020 08:40:45 -0500 Michal Herko <michal.he...@disroot.org> wrote ---- > Dear maintainor of guile-lib. > I believe the special handling of <p> elements in (htmlprag) module to > be a bug. > For example: > > (use-modules (htmlprag)) > (html->shtml "<html><body><div><p>text</p></div></body></html>") > ; expected result (*TOP* (html (body (div (p "text"))))) > ; actual (*TOP* (html (body (div) (p "text")))) > > Note that the <p> element is parsed outside the <div> element. > I attach the simple patch to remove the special case for <p> elements. > >
Sounds familiar. I think I actually stopped using htmlprag a few months ago because of this, and I think this is an older thread about the problem: https://lists.gnu.org/archive/html/guile-user/2019-09/msg00009.html I'm currently using SXML whenever possible.