all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ulf Jasper <ulf.jasper@web.de>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Drop toplevel XML-comments in libxml-parse-(xml|html)-region?
Date: Tue, 11 Nov 2014 20:29:42 +0100	[thread overview]
Message-ID: <87d28to7rt.fsf@web.de> (raw)
In-Reply-To: 87tx25o8pu.fsf@web.de

[Hit the wrong key: Reply instead of Follow-up]

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> I have no opinion in this, but this was added to the libxml code to make
> it possible to re-generate XML documents as is, which is not possible
> with the way `xml-parse-region' discards top-level comments.
>
> So I don't know what the right fix here is.  On the one hand, it is
> (perhaps) surprising that comments are preserved (at all, anywhere) in
> the structure returned by the parser.  However, stashing data that is to
> be further parsed by the HTML engine is a common feature that must be
> preserved.
>
> If we preserve comments further down in the DOM, then not preserving
> them at the top level seems inconsistent.
>
> But perhaps that inconsistency is fine?

If comments are to be preserved then they should be preserved
everywhere.  Agreed.  So we leave libxml-parse-(xml|html)-region
unchanged.

Out of interest:  Why preserve xml/html comments at all except for
re-generating an XML document?



  parent reply	other threads:[~2014-11-11 19:29 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 [this message]
2014-11-11 21:40   ` Stefan Monnier
2014-11-11 21:48     ` Lars Magne Ingebrigtsen
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=87d28to7rt.fsf@web.de \
    --to=ulf.jasper@web.de \
    --cc=emacs-devel@gnu.org \
    /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.