MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / copyAttributes

Method copyAttributes

src/map-link.js:477–482  ·  view source on GitHub ↗
(source, target)

Source from the content-addressed store, hash-verified

475 }
476
477 function copyAttributes(source, target) {
478 return Array.from(source.attributes).forEach((attribute) => {
479 if (attribute.nodeName !== 'href' && attribute.nodeName !== 'media')
480 target.setAttribute(attribute.nodeName, attribute.nodeValue);
481 });
482 }
483 }
484
485 async _createTemplatedLink() {

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.80
setAttributeMethod · 0.80

Tested by

no test coverage detected