function scanFormControlElements_(controlElements) {
  var numEditableElements = 0;
  for (var elementIndex = 0; elementIndex < controlElements.length;
       ++elementIndex) {
    var element = controlElements[elementIndex];
    if (!__gCrWeb.fill.isCheckableElement(element)) {
      ++numEditableElements;
    }
  }
  return numEditableElements;
}
/**
 * Scans |control_elements| and returns the number of editable elements.
 *
 * Unlike the C++ version, this version does not take the
 * log_deprecation_messages parameter, and it does not save any state since
 * there is no caching.
 *
 * It is based on the logic in:
 *     size_t FormCache::ScanFormControlElements(
 *         const std::vector<WebFormControlElement>& control_elements,
 *         bool log_deprecation_messages);
 * in chromium/src/components/autofill/content/renderer/form_cache.cc.
 *
 * @param {Array<FormControlElement>} controlElements The elements to scan.
 * @return {number} The number of editable elements.
 */
Scans |control_elements| and returns the number of editable elements.
Unlike the C++ version, this version does not take the
log_deprecation_messages parameter, and it does not save any state since
there is no caching.



@param {Array} controlElements The elements to scan.
@return {number} The number of editable elements.
Scans |control_elements| and returns the number of editable elements . Unlike the C ++ version this version does not take the log_deprecation_messages parameter and it does not save any state since there is no caching . @param { Array } controlElements The elements to scan . @return { number } The number of editable elements .
function scanFormControlElements_(controlElements) {
  var numEditableElements = 0;
  for (var elementIndex = 0; elementIndex < controlElements.length;
       ++elementIndex) {
    var element = controlElements[elementIndex];
    if (!__gCrWeb.fill.isCheckableElement(element)) {
      ++numEditableElements;
    }
  }
  return numEditableElements;
}
function scanFormControlElements_ ( controlElements ) { var numEditableElements = 0 ; for ( var elementIndex = 0 ; elementIndex < controlElements . length ; ++ elementIndex ) { var element = controlElements [ elementIndex ] ; if ( ! __gCrWeb . fill . isCheckableElement ( element ) ) { ++ numEditableElements ; } } return numEditableElements ; }
Scans |control_elements| and returns the number of editable elements.
Scans |control_elements| and returns the number of editable elements .