From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Ulf Jasper <ulf.jasper@web.de>
Cc: emacs-devel@gnu.org
Subject: Re: Drop toplevel XML-comments in libxml-parse-(xml|html)-region?
Date: Tue, 11 Nov 2014 20:13:42 +0100 [thread overview]
Message-ID: <m3y4rhzh21.fsf@stories.gnus.org> (raw)
In-Reply-To: <87tx25o8pu.fsf@web.de> (Ulf Jasper's message of "Tue, 11 Nov 2014 20:09:17 +0100")
Ulf Jasper <ulf.jasper@web.de> writes:
> Out of interest: Why preserve xml/html comments at all except for
> re-generating an XML document?
In HTML it's necessary because you often include things that "aren't
supposed" to be parsed in comments.
Like
<!--
<script>
foo()
</script>
-->
For the JS stuff, it doesn't really matter much to us since we don't
execute it, but when doing web scraping to get data from a page, you
sometimes see commented-out bits that has to be re-parsed as HTML to get
the bit you're looking for.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2014-11-11 19:13 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 [this message]
2014-11-11 19:29 ` Ulf Jasper
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3y4rhzh21.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).