MCPcopy Index your code
hub / github.com/caseywebdev/react-list / setTextContent

Function setTextContent

docs/index.js:4715–4728  ·  view source on GitHub ↗
(node, text)

Source from the content-addressed store, hash-verified

4713 (element.value = children);
4714}
4715function setTextContent(node, text) {
4716 if (text) {
4717 var firstChild = node.firstChild;
4718 if (
4719 firstChild &&
4720 firstChild === node.lastChild &&
4721 3 === firstChild.nodeType
4722 ) {
4723 firstChild.nodeValue = text;
4724 return;
4725 }
4726 }
4727 node.textContent = text;
4728}
4729var unitlessNumbers = new Set(
4730 "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
4731 " "

Callers 5

setPropFunction · 0.85
setPropOnCustomElementFunction · 0.85
resetTextContentFunction · 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…