MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / htmlToElement

Function htmlToElement

ui/media/js/utils.js:1135–1140  ·  view source on GitHub ↗

* @param {String} HTML representing a single element * @return {Element}

(html)

Source from the content-addressed store, hash-verified

1133 * @return {Element}
1134 */
1135function htmlToElement(html) {
1136 var template = document.createElement('template');
1137 html = html.trim(); // Never return a text node of whitespace as the result
1138 template.innerHTML = html;
1139 return template.content.firstChild;
1140}
1141
1142function modalDialogCloseOnBackdropClick(dialog) {
1143 dialog.addEventListener('mousedown', function (event) {

Callers 1

htmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected