From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.help Subject: Re: Are there some HTML tags that I can use to make certain blocks auto-hide in eww? Date: Thu, 27 Sep 2018 08:54:52 -0700 Message-ID: <23468.64844.870428.426159@retriever.mtv.corp.google.com> References: <23468.64074.953890.707605@retriever.mtv.corp.google.com> <23468.64462.183860.225107@retriever.mtv.corp.google.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1538111177 1170 195.159.176.226 (28 Sep 2018 05:06:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2018 05:06:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, larsi@gnus.org, npostavs@gmail.com, raman@google.com To: kaushal.modi@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 28 07:06:12 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g5kyi-0000Dg-FE for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2018 07:06:12 +0200 Original-Received: from localhost ([::1]:41177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5l0o-0004Ey-DO for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Sep 2018 01:08:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5Yd3-0006vA-Fc for help-gnu-emacs@gnu.org; Thu, 27 Sep 2018 11:55:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5Ycy-00071K-8Q for help-gnu-emacs@gnu.org; Thu, 27 Sep 2018 11:55:01 -0400 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:33252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5Ycy-00070Z-0Q for help-gnu-emacs@gnu.org; Thu, 27 Sep 2018 11:54:56 -0400 Original-Received: by mail-pg1-x534.google.com with SMTP id y18-v6so2296788pge.0 for ; Thu, 27 Sep 2018 08:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=/u1A4lOz+NtmpluKayDZliJgwIpRU9sYL/mcb8NhfdU=; b=oHWcOHTFV7MqXCeLReG2iu2Kg5Z82+bx2RXZXZvV8X/UzlF1vXj1TFA3Fp8/GMwIYt lyC5HyHXS2vJIhY0TPKrL7889ox9WSjXN/K4dnT2WWEurRGN8rMY32DiKoiGpb7F9GOa OIbX+m6lu0Poskk59qTrH9BWRGms/g2G/gmxR4cuShfgxiOp6aUYeQr4uXUsfkk2km1G xy23iJ9SbOTqMetrThHo/5aBQZ5rAAddVTsGRJgwZc5Lsd1fN/H87T5dvwYro216/0Qz pD/Z059y7WhQ9NGNxv4K4fzTSYu7/H3PFXgB/cNImjctQo88D011jfCEx8nYxkyGSG+0 i3sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=/u1A4lOz+NtmpluKayDZliJgwIpRU9sYL/mcb8NhfdU=; b=G+8cNrDushzgL4SwTiYVChv19q9vJwLw/n5WhzooHw/EbPVLLsaOLOMPYgaL8nHZ1w JAxk+EJGq3Ty96bb1uXL9D/wwxbAsGvh4aCRPLKOvwBinKSBmqwZx4Trt0ldontxoT3w zDgR7frGknxISKJYK+Edk+f70FOPomgZbr9oWFXjzrG7jd+FQPpcE0PIt3f1m9SYaOmN oYb9Fl4Joj2q8OuxzzZOuOvSg9Mol8rOhUeK5QR+yYiBMiIUO5jmT5GSJ9Xk5iKyMZ5q Qz9jguDr53GL3iOqwa311kSvGW+zalGQ49L89NXKOwDGUK1R7V8mssfaeQWksh9ZyQIx StRQ== X-Gm-Message-State: ABuFfohz53q5y1lyIHjQK/YJ+7aGTXoHIqjaRpbsKBnWootxpocTO2+a Iq6597OwSMwEbMCmq/eoaK+a4Q== X-Google-Smtp-Source: ACcGV62RAqsRBz26amCC+OQHcxJq6coig8Ev118BY2FeaDHOHUNWOhJFizv2azdWN6x8joacAL8wiA== X-Received: by 2002:a63:ac56:: with SMTP id z22-v6mr10940846pgn.444.1538063694496; Thu, 27 Sep 2018 08:54:54 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([100.98.8.133]) by smtp.gmail.com with ESMTPSA id o126-v6sm3981568pfg.86.2018.09.27.08.54.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Sep 2018 08:54:53 -0700 (PDT) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id EDE631E11E3; Thu, 27 Sep 2018 08:54:52 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 27.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::534 X-Mailman-Approved-At: Fri, 28 Sep 2018 01:05:46 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118048 Archived-At: As with everything in browsers, "it depends". What is guaranteed by the spec: "aria-hidden=true" will hide those nodes from a screenreader --- it does not guarantee that it will always hide it from the visual rendering. The reasons for this are complex and convoluted. Kaushal Modi writes: > On Thu, Sep 27, 2018 at 11:48 AM T.V Raman wrote: > > > Correct, should work. Just remember that if you want those nodes to > ever show up in a JS-powered browser, you'll need to set that attr > to false in the JS code that unhides it -- otherwise it'll just lead > to differently confusing experiences. > > > But adding aria-hidden=true should hide those elements on non-screen readers like a regular Firefox browser, right? [I know I could have simply tried that.] -- Id: kg:/m/0285kf1 -- Id: kg:/m/0285kf1