Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
jquery-emulatetab
Advanced tools
A jQuery plugin to emulate tabbing between elements on a page.
The tab key is very useful when it comes to navigating webpages. When working with functions that modify or reuse tabbing through elements on a page, the browser's native tabbing logic cannot be called from javascript. This plugin tries to emulate/simulate that browser logic.
Download the script, and include it in your HTML page after the jQuery script tag.
Link | Note |
---|---|
emulatetab.joelpurra.js | For development |
emulatetab.joelpurra.min.js | For production |
Github | $ git clone --recursive git://github.com/joelpurra/emulatetab.git Make sure to get the submodules too. |
Bower | $ bower install jquery-emulatetab |
Component | $ component install joelpurra/emulatetab |
NPM | $ npm install jquery-emulatetab |
jQuery Plugin Registry | |
Packagist |
example/demo.html
: Simple demo for comparing EmulateTab to your browser.// Emulate forward tab from the currently focused element
$.emulateTab();
// Emulate reverse tab from the currently focused element
$.emulateTab(-1);
// Emulate forward tab from a specific element
$(selector).emulateTab();
// Emulate reverse tab from a specific element
$(selector).emulateTab(-1);
Elements that can be focused/tabbed include <input>
, <select>
, <textarea>
, <button>
and <a href="...">
(the href
attribute must exist and the tag must have some contents).
Note that <input type="hidden" />
, <a>
(without href
or empty contents), disabled="disabled"
or display: none;
elements cannot be focused/tabbed to.
Developed to as a part of two other plugins; one to use tab to skip over less used form fields, the other to use the + on the keypad as a new tab key. Both plugins were used in a web application for registering and administering letters.
EmulateTab's only runtime dependencies is jQuery.
Should be about as compatible as jQuery is, since most functions depend on jQuery's normalization. You are engouraged to run the EmulateTab test suite and then report any issues.
In order to contribute to the project, follow these steps.
$ git clone --recursive git@github.com:USERNAME/emulatetab.git
where USERNAME
is your github username.$ git checkout -b my-own-modification
where my-own-modification
is a descriptive name for your fix or feature.$ npm install && bower install
$ grunt watch
$ git commit
$ grunt
to make sure all tests pass.$ git push
:focusable
/:tabbable
. Investigate how to implement it.[contenteditable]
.[tabindex]
and negative values value.Developed for PTS by Joel Purra http://joelpurra.se/
Copyright (c) 2011, 2012, 2013, 2014, 2015, The Swedish Post and Telecom Authority (PTS) All rights reserved.
Released under the BSD license.
FAQs
A jQuery plugin to emulate tabbing between elements on a page.
The npm package jquery-emulatetab receives a total of 57 weekly downloads. As such, jquery-emulatetab popularity was classified as not popular.
We found that jquery-emulatetab 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.