
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Fauxcus allows the focusing of all elements. This includes elements that are
normally not focusable such as the main element or div elements. It does so
by adding a tabindex attribute with a value of -1. In addition to adding
the tabindex attribute an event listener is bound that will remove the
tabindex attribute when the element loses focus.
The functionality that fauxcus provides is particularly useful for skip links and other in-page links that are currently (as of late 2018) broken on mobile devices. It is a vanilla JavaScript implementation of the focusing functionality of Anika Henke's solution. Her solution also deals with hash changes and URLs that contain a fragment identifier when opened. fauxcus only handles setting focus.
Install using npm or yarn.
$ npm install --save fauxcus
fauxcus(node)Put focus on node.
When node is already focusable, either because it is by default or it already
has a tabindex attribute, it will only get focus.
If it is not focusable it will be made focusable by adding a tabindex="-1"
attribute and get focus. It will lose the tabindex attribute upon losing focus.
import { fauxcus } from 'fauxcus';
const main = document.querySelector('main');
fauxcus(main);
FAQs
Make in-page links accessible on mobile devices
We found that fauxcus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.