(element, value, defaultValue, children)
| 4692 | null != defaultValue ? "" + getToStringValue(defaultValue) : ""; |
| 4693 | } |
| 4694 | function initTextarea(element, value, defaultValue, children) { |
| 4695 | if (null == value) { |
| 4696 | if (null != children) { |
| 4697 | if (null != defaultValue) throw Error(formatProdErrorMessage(92)); |
| 4698 | if (isArrayImpl(children)) { |
| 4699 | if (1 < children.length) throw Error(formatProdErrorMessage(93)); |
| 4700 | children = children[0]; |
| 4701 | } |
| 4702 | defaultValue = children; |
| 4703 | } |
| 4704 | null == defaultValue && (defaultValue = ""); |
| 4705 | value = defaultValue; |
| 4706 | } |
| 4707 | defaultValue = getToStringValue(value); |
| 4708 | element.defaultValue = defaultValue; |
| 4709 | children = element.textContent; |
| 4710 | children === defaultValue && |
| 4711 | "" !== children && |
| 4712 | null !== children && |
| 4713 | (element.value = children); |
| 4714 | } |
| 4715 | function setTextContent(node, text) { |
| 4716 | if (text) { |
| 4717 | var firstChild = node.firstChild; |
no test coverage detected
searching dependent graphs…