MCPcopy
hub / github.com/ampproject/amphtml / html

Function html

src/core/dom/static-template.js:72–74  ·  view source on GitHub ↗

* A tagged template literal helper to generate static DOM trees. * This must be used as a tagged template, ie * * ``` * const div = html` `; * ``` * * Only the root element and its subtree will be returned. DO NOT use this to * render subtree's with dynamic content, it

(strings)

Source from the content-addressed store, hash-verified

70 * @return {HTMLElement}
71 */
72function html(strings) {
73 return createNode(htmlContainer, strings);
74}
75
76/**
77 * Helper used by html and svg string literal functions.

Callers 15

test-action.jsFile · 0.50
test-modal.jsFile · 0.50
renderInteractionOverlayFunction · 0.50
renderIconFunction · 0.50
renderElementsFunction · 0.50
build_Method · 0.50
buildShadow_Method · 0.50

Calls 1

createNodeFunction · 0.85

Tested by

no test coverage detected