all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "T.V Raman" <raman@google.com>
To: kaushal.modi@gmail.com
Cc: help-gnu-emacs@gnu.org, larsi@gnus.org, npostavs@gmail.com,
	raman@google.com
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:42:02 -0700	[thread overview]
Message-ID: <23468.64074.953890.707605@retriever.mtv.corp.google.com> (raw)
In-Reply-To: <CAFyQvY2iyJNbr7R3AZa6AyL8DutX1wYHcBvxEEPWAUFAw45eUg@mail.gmail.com>

That option was added to hide nodes with aria-hidden=true.

That HTML attribute --- aria-hidden --- comes from the W3C ARIA Spec
(Access To Rich Internet Applications) and the motivation there was
to avoid accidentally rendering DOM nodes that have HTML content, but
are normally hidden from being rendered by JavaScript. Since one
cannot figure that out by analysing JS code (Halting Problem), we at
the time decided to introduce a DOM  attribute  that could be examined
to discover that the state of a DOM node was hidden. Later if a script
makes that node visibly, it  needs to also set that attr to false.

In the case, of EWW, since we dont run JS code, the state of
aria-hidden=true will never change to false from the  initial value
and you can safely drop those nodes.
Kaushal Modi writes:
 > On Thu, Sep 27, 2018 at 10:25 AM Noam Postavsky <npostavs@gmail.com> wrote:
 > 
 > 
 >  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.
 > 
 > 
 > Copying Lars and T.V. Raman (OP of https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32348) for their opinion on this.

-- 
Id: kg:/m/0285kf1 

-- 
Id: kg:/m/0285kf1 



  reply	other threads:[~2018-09-27 15:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-27 13:18 Are there some HTML tags that I can use to make certain blocks auto-hide in eww? Kaushal Modi
2018-09-27 13:50 ` Noam Postavsky
2018-09-27 13:55   ` Kaushal Modi
2018-09-27 14:25     ` Noam Postavsky
2018-09-27 15:25       ` Kaushal Modi
2018-09-27 15:42         ` T.V Raman [this message]
2018-09-27 15:45           ` Kaushal Modi
2018-09-27 15:48             ` T.V Raman
2018-09-27 15:50               ` Kaushal Modi
2018-09-27 15:54                 ` T.V Raman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=23468.64074.953890.707605@retriever.mtv.corp.google.com \
    --to=raman@google.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kaushal.modi@gmail.com \
    --cc=larsi@gnus.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.