From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nicolas Graner Newsgroups: gmane.emacs.bugs Subject: bug#43217: EWW ignores select options in an optgroup Date: Sat, 05 Sep 2020 12:30:07 +0200 Message-ID: <86tuwcv7m8.fsf@hypra-xx> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8873"; mail-complaints-to="usenet@ciao.gmane.io" To: 43217@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 05 12:31:10 2020 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 1kEVTS-0002DG-9g for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 12:31:10 +0200 Original-Received: from localhost ([::1]:40650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kEVTR-0003js-CY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Sep 2020 06:31:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEVTK-0003jI-Uw for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 06:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kEVTK-0003bc-Kk for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 06:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kEVTK-0002LR-GD for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 06:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Graner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Sep 2020 10:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43217 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15993018218962 (code B ref -1); Sat, 05 Sep 2020 10:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Sep 2020 10:30:21 +0000 Original-Received: from localhost ([127.0.0.1]:41552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEVSe-0002KT-Ic for submit@debbugs.gnu.org; Sat, 05 Sep 2020 06:30:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kEVSc-0002KL-KV for submit@debbugs.gnu.org; Sat, 05 Sep 2020 06:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEVSc-0003Sk-EY for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 06:30:18 -0400 Original-Received: from smtp26.services.sfr.fr ([93.17.128.197]:57002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kEVSZ-0003Lx-Fb for bug-gnu-emacs@gnu.org; Sat, 05 Sep 2020 06:30:17 -0400 X-mail-filterd: 1.0.0 X-sfr-mailing: LEGIT X-sfr-spamrating: 40 X-sfr-spam: not-spam DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=universite-paris-saclay.fr; s=202006; t=1599301808; h=From:To:Subject:Date ; bh=dn/isZONPLxgBFnJV8wmvuLH1bj85LMbY6KqvnIaiMY=; b=Gz92cpHJ6d485Z9disQSbgN nL/IkKgqn7w3XNMCFTTHqpPeicqQg6aaIUGiVYuY4FwOuZ8K6ta4eaAsXrww2vAAwdr3/MC7qcDo iLvA/jB22Gu8BnHbVge7oQyHEoUuMgzOk+EAV72X28G9MkpA3sOnAgYq4nLTP7tLnO+cDcxBfydw Byg8wFjfSkEo9A9HW5OJ4wA2EXYUeVMfFhbskIl0nlgzvc6oMrlI8Y5kr3CX7UWXA0K1r9SLsvlX vCCU7ehRk97fokZsBNNxgXwTvrMdZI6pFitkiSHGN5jVsUYlatkC7ETBDrnmEb1tnrRcQH7/I45Z yvwB9OQWn5RQ7bA==; Original-Received: from hypra-graner (106.124.67.86.rev.sfr.net [86.67.124.106]) by msfrf2613.sfr.fr (SMTP Server) with ESMTP id 2D6801C00042B for ; Sat, 5 Sep 2020 12:30:08 +0200 (CEST) Original-Received: from hypra-graner (106.124.67.86.rev.sfr.net [86.67.124.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by msfrf2613.sfr.fr (SMTP Server) with ESMTPS for ; Sat, 5 Sep 2020 12:30:07 +0200 (CEST) Received-SPF: pass client-ip=93.17.128.197; envelope-from=nicolas.graner@sfr.fr; helo=smtp26.services.sfr.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/05 06:30:08 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:187199 Archived-At: When rendering second select -------------------------------------------------- It should normally display: -------------------------------------------------- first select one second select three -------------------------------------------------- but instead displays: -------------------------------------------------- first select one second select -------------------------------------------------- Explanation: the function 'eww-tag-select' searches for 'option' in (dom-non-text-children dom) which includes only first-level children of the 'select' node, and therefore misses children of 'optgroup' children. Note: this was tested in master. Earlier versions had the opposite bug where options where processed *only* if they were within an optgroup. It seems that this bug was fixed incorrectly. Nicolas