MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / resolveAttribute

Method resolveAttribute

www/js/_hyperscript.esm.js:2517–2520  ·  view source on GitHub ↗
(root, property)

Source from the content-addressed store, hash-verified

2515 return root.querySelectorAll(css);
2516 }
2517 resolveAttribute(root, property) {
2518 if (this.reactivity.isTracking) this.reactivity.trackAttribute(root, property);
2519 return this.#flatGet(root, property, (root2, property2) => root2.getAttribute && root2.getAttribute(property2));
2520 }
2521 resolveStyle(root, property) {
2522 return this.#flatGet(root, property, (root2, property2) => root2.style && root2.style[property2]);
2523 }

Callers 5

resolveMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
_createExpressionSideFunction · 0.45

Calls 2

#flatGetMethod · 0.95
trackAttributeMethod · 0.45

Tested by

no test coverage detected