MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / getAttr

Function getAttr

src/content-scripts/providerSpecific.js:316–318  ·  view source on GitHub ↗

* Filter a certain attribute of a list of elements for email addresses. * @param {NodeList } elements - A list of elements to iteralte over * @param {String} attrName - The optional element's attribute name to query by * @return {Array} The recipient objects in fhe form { email: '

(elements, attrName)

Source from the content-addressed store, hash-verified

314 * @return {Array} The recipient objects in fhe form { email: 'jon@example.com' }
315 */
316function getAttr(elements, attrName) {
317 return parseEmail(elements, element => element.getAttribute(attrName));
318}
319
320/**
321 * Set focus to element on next tick

Callers 3

getRecipientsMethod · 0.85
getSenderMethod · 0.85
getRecipientsMethod · 0.85

Calls 1

parseEmailFunction · 0.85

Tested by

no test coverage detected