[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Drop toplevel XML-comments in libxml-parse-(xml|html)-region?
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: Drop toplevel XML-comments in libxml-parse-(xml|html)-region? |
Date: |
Tue, 11 Nov 2014 22:48:42 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> How 'bout:
> - add an optional argument to request the result be stripped of its comments.
> or
> - add a function which takes a parse result and strips it of its comments.
Yes, that would make sense.
But the only problematic comment is the top-level one, because that
makes the structure different than if the comment wasn't there. Perhaps
we could just cheat and push any top-level comments one step down in the
DOM? I mean, it's gross, but I don't think anybody would actually
notice in real life.
We could even document that that's what it does, and everybody would
have to be satisfied. >"?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no