MCPcopy Create free account
hub / github.com/caseywebdev/react-list / normalizeHTML

Function normalizeHTML

docs/index.js:35563–35574  ·  view source on GitHub ↗
(parent, html)

Source from the content-addressed store, hash-verified

35561 );
35562 }
35563 function normalizeHTML(parent, html) {
35564 parent =
35565 parent.namespaceURI === MATH_NAMESPACE ||
35566 parent.namespaceURI === SVG_NAMESPACE
35567 ? parent.ownerDocument.createElementNS(
35568 parent.namespaceURI,
35569 parent.tagName
35570 )
35571 : parent.ownerDocument.createElement(parent.tagName);
35572 parent.innerHTML = html;
35573 return parent.innerHTML;
35574 }
35575 function normalizeMarkupForTextOrAttribute(markup) {
35576 willCoercionThrow(markup) &&
35577 (console.error(

Callers 1

diffHydratedPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…