MCPcopy Index your code
hub / github.com/philc/vimium / findElementWithRelValue

Function findElementWithRelValue

content_scripts/mode_normal.js:487–497  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

485}
486
487function findElementWithRelValue(value) {
488 const relTags = ["link", "a", "area"];
489 for (const tag of relTags) {
490 const els = document.getElementsByTagName(tag);
491 for (const el of Array.from(els)) {
492 if (el.hasAttribute("rel") && (el.rel.toLowerCase() === value)) {
493 return el;
494 }
495 }
496 }
497}
498
499class FocusSelector extends Mode {
500 constructor(hints, visibleInputs, selectedInputIndex) {

Callers 2

goPreviousFunction · 0.85
goNextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected