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

Method href

src/map-link.js:81–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 // }
80 // }
81 get href() {
82 if (this.hasAttribute('href')) {
83 return new URL(this.getAttribute('href'), this.getBase()).href;
84 } else if (this.hasAttribute('tref')) {
85 return this.resolve();
86 }
87 }
88 set href(val) {
89 // improve this
90 if (val) {

Callers

nothing calls this directly

Calls 4

getBaseMethod · 0.95
resolveMethod · 0.95
getAttributeMethod · 0.80
setAttributeMethod · 0.80

Tested by

no test coverage detected