MCPcopy
hub / github.com/autoNumeric/autoNumeric / _isContentEditable

Method _isContentEditable

src/AutoNumeric.js:7954–7956  ·  view source on GitHub ↗

* Returns `true` if the given DOM element is a contenteditable one (set to `true`) * * @param {HTMLElement} domElement * @returns {boolean}

(domElement)

Source from the content-addressed store, hash-verified

7952 * @returns {boolean}
7953 */
7954 _isContentEditable(domElement) {
7955 return domElement.hasAttribute('contenteditable') && domElement.getAttribute('contenteditable') === 'true';
7956 }
7957
7958 /**
7959 * Formats the default value on page load.

Callers 1

_checkElementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected