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#43227: EWW ignores 'multiple' attribute of 'select' Date: Mon, 07 Sep 2020 10:51:02 +0200 Message-ID: <86h7sat1ft.fsf@hypra-xx> References: <86d030uoh3.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="1485"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43227@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 07 10:52: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 1kFCsj-0000Gk-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 10:52:09 +0200 Original-Received: from localhost ([::1]:59866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFCsi-0002YJ-T5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Sep 2020 04:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFCsc-0002Xv-8s for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 04:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFCsb-0007vL-W1 for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 04:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kFCsb-0005Y2-UA for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2020 04:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Graner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Sep 2020 08:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43227 X-GNU-PR-Package: emacs Original-Received: via spool by 43227-submit@debbugs.gnu.org id=B43227.159946867221268 (code B ref 43227); Mon, 07 Sep 2020 08:52:01 +0000 Original-Received: (at 43227) by debbugs.gnu.org; 7 Sep 2020 08:51:12 +0000 Original-Received: from localhost ([127.0.0.1]:48048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFCro-0005Wy-Hu for submit@debbugs.gnu.org; Mon, 07 Sep 2020 04:51:12 -0400 Original-Received: from smtp-out-34.di.u-psud.fr ([129.175.213.34]:19144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFCrl-0005Wh-TO for 43227@debbugs.gnu.org; Mon, 07 Sep 2020 04:51:12 -0400 Original-Received: from smtp-out-2.di.u-psud.fr (localhost [127.0.0.1]) by smtp-out-2.di.u-psud.fr (UPS-MTA-OUT) with ESMTP id 4BlMSl2hWfz1XMR; Mon, 7 Sep 2020 10:51:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp-out-2.di.u-psud.fr 4BlMSl2hWfz1XMR DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=universite-paris-saclay.fr; s=dkim; t=1599468663; bh=w+rBIlkEtcM49VIpJFJOnC61QEBr3YoumM91B4+Q+Rg=; h=From:To:Cc:Subject:In-Reply-To:Date:From; b=I7W6GntZSSRqO+S6NeCOtEqAcmAhUGHnFR3HMmWgwDO1IHooyFBon5pSVSDmZpvMu NKZ8Vt0bMnRYVIhuQHO3wfWiLoJhCIbOqvXACa4EcMZPH0ooToUlSDdhqyGmyXfxdM KnQmf7JVTr5nc6c0Ju03tYEi+QzJ/TGxi2tU7u9c= Original-Received: from pmx2.di.u-psud.fr (pmx2.di.u-psud.fr [129.175.212.153]) by smtp-out-2.di.u-psud.fr (UPS-MTA-OUT) with ESMTP id 4BlMSl2bPvzbhW4; Mon, 7 Sep 2020 10:51:03 +0200 (CEST) Original-Received: from smtp-in-2.di.u-psud.fr (localhost [127.0.0.1]) by localhost (UPS-PMX) with SMTP id 4BlMSl23DSz1qtnN; Mon, 7 Sep 2020 10:51:03 +0200 (CEST) Original-Received: from hypra-graner (ngnm.sciences.u-psud.fr [129.175.141.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-in-2.di.u-psud.fr (UPS-MTA) with ESMTPS id 4BlMSk597cz1YB0; Mon, 7 Sep 2020 10:51:02 +0200 (CEST) In-Reply-To: <87a6y2bj62.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 07 Sep 2020 01:05:25 +0200) Authentication-Results: smtp-in-2.di.u-psud.fr; none X-Rspamd-Queue-Id: 4BlMSk597cz1YB0 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:187416 Archived-At: Lars Ingebrigtsen wrote on 2020-09-07 01:05: > In the context of the new drop-down menu... > > Perhaps they could just be rendered as > > [ ] Val1 > [ ] Val2 > > and if you choose one of them, then we go to > > [x] Val1 > [ ] Val2 > > (and close the menu), and then you have to open it again to click on: > > [x] Val1 > [x] Val2 This looks really awkward. Reopening the menu for each item you want to select or deselect is inefficient and counter-intuitive. Besides, it leaves open the question of how to render a multiple select in the eww buffer, showing which options are selected. > Because I don't know a way to make the menu stay up after clicking on it. Pop-up menus are probably not the right tool to implement multiple selects. There is a reason why graphical browsers offer quite different interfaces to single and multiple selects. I stand by my suggestion that a multiple select should look similar to a list of checkboxes. Maybe it could actually be converted to checkboxes at the DOM level, before rendering, and then let the normal checkbox code do the job? Nicolas