validator/engine/dom-walker.js
/**
 * Convert a dom namedNodeMap to an attribute/value list.
 * @param {NamedNodeMap} namedNodeMap
 * @return {Array<string>} attributes as alternating key/value pairs
 */
Convert a dom namedNodeMap to an attribute/value list.
@param {NamedNodeMap} namedNodeMap
@return {Array} attributes as alternating key/value pairs
Convert a dom namedNodeMap to an attribute / value list . @param { NamedNodeMap } namedNodeMap @return { Array } attributes as alternating key / value pairs
function attrList(namedNodeMap) {
  var ret = [];
  for (var i = 0; i < namedNodeMap.length; ++i) {
    ret.push(namedNodeMap[i].name);
    ret.push(namedNodeMap[i].value);
  }
  return ret;
}
function attrList ( namedNodeMap ) { var ret = [ ] ; for ( var i = 0 ; i < namedNodeMap . length ; ++ i ) { ret . push ( namedNodeMap [ i ] . name ) ; ret . push ( namedNodeMap [ i ] . value ) ; } return ret ; }
Convert a dom namedNodeMap to an attribute/value list.
Convert a dom namedNodeMap to an attribute / value list .
// The attribute name is always lower cased when returned by the browser.