MCPcopy Create free account
hub / github.com/breck7/scroll / setHtmlOfElementsWithClassHack

Method setHtmlOfElementsWithClassHack

external/.scrollLibs.js:24030–24035  ·  view source on GitHub ↗
(className, html = "")

Source from the content-addressed store, hash-verified

24028 document.getElementById(id).innerHTML = html
24029 }
24030 setHtmlOfElementsWithClassHack(className, html = "") {
24031 const els = document.getElementsByClassName(className)
24032 for (let el of els) {
24033 el.innerHTML = html
24034 }
24035 }
24036 setValueOfElementWithIdHack(id, value = "") {
24037 const el = document.getElementById(id)
24038 el.value = value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected