From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Ulf Jasper <ulf.jasper@web.de>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Drop toplevel XML-comments in libxml-parse-(xml|html)-region?
Date: Tue, 11 Nov 2014 22:48:42 +0100 [thread overview]
Message-ID: <m3oasdxvb9.fsf@stories.gnus.org> (raw)
In-Reply-To: <jwva93xct88.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 11 Nov 2014 16:40:26 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> 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
next prev parent reply other threads:[~2014-11-11 21:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 20:36 Drop toplevel XML-comments in libxml-parse-(xml|html)-region? Ulf Jasper
2014-11-11 16:28 ` Lars Magne Ingebrigtsen
[not found] ` <87tx25o8pu.fsf@web.de>
2014-11-11 19:13 ` Lars Magne Ingebrigtsen
2014-11-11 19:29 ` Ulf Jasper
2014-11-11 21:40 ` Stefan Monnier
2014-11-11 21:48 ` Lars Magne Ingebrigtsen [this message]
2014-11-11 21:52 ` Lars Magne Ingebrigtsen
2014-11-12 20:24 ` Ulf Jasper
2014-11-21 15:49 ` Ulf Jasper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3oasdxvb9.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=ulf.jasper@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.