From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63125: 30.0.50; [BUG] last argument of libxml-parse-html-region has no effect? Date: Fri, 28 Apr 2023 18:40:35 +0800 Message-ID: References: <83h6t1s16p.fsf@gnu.org> Reply-To: Ruijie Yu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26931"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.22; emacs 30.0.50 Cc: Eli Zaretskii , 63125@debbugs.gnu.org To: Ruijie Yu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 28 12:52:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1psLi3-0006nE-9w for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Apr 2023 12:52:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psLhs-0007mg-DQ; Fri, 28 Apr 2023 06:52:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psLhq-0007m5-Lx for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2023 06:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psLhq-0003az-DH for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2023 06:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psLhq-0007Sw-58 for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2023 06:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ruijie Yu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Apr 2023 10:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63125 X-GNU-PR-Package: emacs Original-Received: via spool by 63125-submit@debbugs.gnu.org id=B63125.168267907928563 (code B ref 63125); Fri, 28 Apr 2023 10:52:02 +0000 Original-Received: (at 63125) by debbugs.gnu.org; 28 Apr 2023 10:51:19 +0000 Original-Received: from localhost ([127.0.0.1]:60559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psLh9-0007Qa-43 for submit@debbugs.gnu.org; Fri, 28 Apr 2023 06:51:19 -0400 Original-Received: from netyu.xyz ([152.44.41.246]:38802 helo=mail.netyu.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psLh4-0007Pv-B5 for 63125@debbugs.gnu.org; Fri, 28 Apr 2023 06:51:17 -0400 Original-Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 12868252 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 28 Apr 2023 10:51:12 +0000 (UTC) In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260769 Archived-At: Ruijie Yu writes: > Ruijie Yu writes: >>> >>> If you look at xml.c, you will see that we just call a libxml function >>> passing it this URL. So if anything isn't as expected, the answer is >>> in libxml, not in Emacs. >> >> Thank you for pointing that out. I will take a look at its source in a >> day or two. I am also upgrading it from 2.10.3-2 to 2.10.4-2, and will >> see if that changes anything. > > No difference -- as expected. > >> If I end up deciding that it is a libxml2 bug, I'll file a bug there and >> link to this bug. > > I have filed an issue [1] in libxml2. We'll see what they say about it. > > FTR, [2] is the documentation of the libxml2's htmlReadMemory() > function -- though it does not say much. > > [1]: https://gitlab.gnome.org/GNOME/libxml2/-/issues/525 > [2]: https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-HTMLparser.html#htmlReadMemory. I just got a response from one of libxml2's maintainers. It seems that the docstring for `libxml-parse-html-region' is wrong: this argument has never served the purpose of resolving relative URLs. It was only used for error messages. So I suggest that we modify the docstring of this function and `libxml-parse-xml-region' to reflect this fact. I also don't know if, based on this new information, you want to mark this parameter obsolete. I see no immediate need, though. Should I send a patch for the documentation change, or will you do it? -- Best, RY [Please note that this mail might go to spam due to some misconfiguration in my mail server -- still investigating.]