From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky 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 10:25:34 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1538058249 2032 195.159.176.226 (27 Sep 2018 14:24:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2018 14:24:09 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Kaushal Modi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 27 16:24:04 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 1g5XD2-0000RS-7x for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Sep 2018 16:24:04 +0200 Original-Received: from localhost ([::1]:36166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5XF8-00061z-GS for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Sep 2018 10:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5XEj-00061q-SA for help-gnu-emacs@gnu.org; Thu, 27 Sep 2018 10:25:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5XEj-0006bR-2M for help-gnu-emacs@gnu.org; Thu, 27 Sep 2018 10:25:49 -0400 Original-Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]:37697) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5XEh-0006az-P2 for help-gnu-emacs@gnu.org; Thu, 27 Sep 2018 10:25:49 -0400 Original-Received: by mail-ot1-x32f.google.com with SMTP id o13-v6so2745257otl.4 for ; Thu, 27 Sep 2018 07:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OiqiCE8MEQpmwyPagI0QMXtT55XuR1OfTafiqj6OmaI=; b=b8FjZ3NQK6S/JoPhNurvYdy0fClIaM7Vh6n2CxDlmStY1M47RGCd2LljVTkRZpTrWX YHxPotu3sMC6qkTemr4TrJEUfGbRBvvxSybX6Es+5nV9WFGsdZsGdRwfVIxtVnnJB8Xk dCkXIG6dIoHqQ5byRfpj+t294+DKQwuMrtHcIrX2eIbs4zdBHQylEkWCUK7u3un64LHO uKMa4iyImXYIZ7Y5frF04MJSjlTdntn+fZxhbaxEFu3huPaRgTj5P6BLMR0kekp6YXtl pdkSTkNg04qNbMfVAvmz16NBq2LWYUnoE1My5u8iGxebrKsnQ7vH9dt9R0IAkRnMHxK1 JkKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OiqiCE8MEQpmwyPagI0QMXtT55XuR1OfTafiqj6OmaI=; b=fzRB1HCggdPJLPHLNr3Rq/XgW701zxVo+F2PiqsFjv0CuzzzToeL/SSPt8qN76qEDV 9Ee8vQlDxsZJ5ePgKZ93gqq0aXxCmEmmWNLSZdqTBBeztTJ/Wh+bGVAcpJFbdmmiXHmy InO/DVSvqvMJApdvTB4GbwEJUuU+3HJOpF5nfJwDlMzEfSOTstZsJktyvLJTJx3PORAU lXhvhj44Fs8vReFKkHyOwSYWRSNpxdKPc8yi5WWQgqzjG3/rHV7s6dJh5WRdbteDPNzm 6RLQO9DyGlyU0IntlG1EcKBHF5me202IyfAlQ1ryaWTkn0l1xnK4fdugFxLMQAq03Fzv OOxw== X-Gm-Message-State: ABuFfohGSDbjA6FT32YgihXJwUJgljYRwqy3gPcnvBmm2m6nzk+gvv9M d3Wcu7/mbfXZiEDJL/6w5qwacBkmIDeyHyrxwpk= X-Google-Smtp-Source: ACcGV61PVIH2LwTIP7WptL41SmXoHAgAJ+MFCAeTix7L/3otCXPZF3sTjuqHGdKripRFDxeqxvFbrM/yFiFhKwn7JTM= X-Received: by 2002:a9d:5e15:: with SMTP id d21-v6mr7549712oti.148.1538058346834; Thu, 27 Sep 2018 07:25:46 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32f 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:118033 Archived-At: >> Eww (or more specifically, shr) supports inline styles, using >> style="display:none" on a tag does hide it in Eww. > > Wouldn't that permanently hide the tag? Not a web expert, but can inline styles be overridden by external CSS? Not a web expert either, but yes, I think it's permanent. I don't think Eww supports dynamic modification of the display. >> recent Emacs from master, aria-hidden="true" also works (generally, >> this is meant to hide it from screen-readers, see Bug#32348). > > I looked at this one, but hiding the aria-hidden is disabled by default. > > C-h v shr-discard-aria-hidden shows that it is nil by default. Right, I forgot to mention that. > I was looking for a way to have my site "just work as I expect" without having users need to set shr-discard-aria-hidden to t. Possibly setting shr-discard-aria-hidden to t by default would make sense, I just don't feel familiar enough with its usage in practice to make that call.